Skip to content

Commit

Permalink
vendor: go-git: import IsDir() check for readReferenceFile()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kevans91 committed Apr 24, 2020
1 parent d3fc9c0 commit c965b0a
Showing 1 changed file with 11 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c965b0a

Please sign in to comment.