diff options
author | Vicent Martà <vicent@github.com> | 2012-07-11 05:29:51 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-07-11 05:29:51 -0700 |
commit | a13a30ac302ede33d8bc4b6b0c283a57f6e8cc2e (patch) | |
tree | e6cfedbe35b0b397ec89ffbdd30ea3903241e1d3 /src/fileops.c | |
parent | 6b9a49cd5fd6addc5b9ce3281ea33a50934f5a94 (diff) | |
parent | 3e82d6c6f0783a5c74b79d7a849e9ca319f171b5 (diff) | |
download | libgit2-a13a30ac302ede33d8bc4b6b0c283a57f6e8cc2e.tar.gz |
Merge pull request #801 from nulltoken/fix/ref-renaming
refs and revparse love <3
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); } |