diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-07-07 10:36:35 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-07 12:15:30 +0200 |
| commit | d0a920a6fd70aaad9a3cee10ba6465f3b04a7bc5 (patch) | |
| tree | e3ef1cfaa27d5cbeb2c0e45851932cb39be7dc4b /src/fileops.c | |
| parent | 5ffd510dd2f39f674d502853cee38c80ad959756 (diff) | |
| download | libgit2-d0a920a6fd70aaad9a3cee10ba6465f3b04a7bc5.tar.gz | |
refs: deep unfound ref returns ENOTFOUND
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index 95a65893c..5849b79b2 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -94,7 +94,7 @@ int git_futils_open_ro(const char *path) { int fd = p_open(path, O_RDONLY); if (fd < 0) { - if (errno == ENOENT) + if (errno == ENOENT || errno == ENOTDIR) fd = GIT_ENOTFOUND; giterr_set(GITERR_OS, "Failed to open '%s'", path); } |
