projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
attr: failure to open a .gitattributes file is OK with ENOTDIR
[git.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 4ccaf7ac197c28400eddd496abcfc725528ca32b..af5cfbde63aed41d95ac7318d064d3012832d2c5 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-298,7
+298,7
@@
static int link_alt_odb_entry(const char * entry, int len, const char * relative
return -1;
}
}
- if (!
memcmp(ent->base, objdir, pfxlen
)) {
+ if (!
strcmp(ent->base, objdir
)) {
free(ent);
return -1;
}