summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-07-11 05:29:51 -0700
committerVicent Martí <vicent@github.com>2012-07-11 05:29:51 -0700
commita13a30ac302ede33d8bc4b6b0c283a57f6e8cc2e (patch)
treee6cfedbe35b0b397ec89ffbdd30ea3903241e1d3 /src/fileops.c
parent6b9a49cd5fd6addc5b9ce3281ea33a50934f5a94 (diff)
parent3e82d6c6f0783a5c74b79d7a849e9ca319f171b5 (diff)
downloadlibgit2-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.c2
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);
}