Skip to content

Commit c965b0a

Browse files
committed
vendor: go-git: import IsDir() check for readReferenceFile()
This fix has been accepted and merged upstream; the gist of the problem is that readReferenceFile() must check that what it's been requested to read isn't a directory. read() on a directory fd may work on some platforms (e.g. FreeBSD), so readReferenceFile() would previously succeed at the earliest point in a branch name (e.g. "feature" in "feature/myfeature") despite the fact that this isn't a branch ref but a directory. Fixes issue go-gitea#9938 Signed-off-by: Kyle Evans <[email protected]>
1 parent d3fc9c0 commit c965b0a

File tree

1 file changed

+11
-0
lines changed
  • vendor/github.com/go-git/go-git/v5/storage/filesystem/dotgit

1 file changed

+11
-0
lines changed

vendor/github.com/go-git/go-git/v5/storage/filesystem/dotgit/dotgit.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)