summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a8344ab)
raw | patch | inline | side by side (parent: a8344ab)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 12 Feb 2009 21:02:09 +0000 (13:02 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 12 Feb 2009 21:02:09 +0000 (13:02 -0800) |
This reverts commit b229d18a809c169314b7f0d048dc5a7632e8f916, at least
until we figure out how to work better with TopGit that points HEAD to
refs/top-bases/ hierarchy.
until we figure out how to work better with TopGit that points HEAD to
refs/top-bases/ hierarchy.
path.c | patch | blob | history |
index dd22370e8e5cb932f9c8ce8756c154073771b35b..4b9107fed10c1f3551acf1f14d2ba5d1ba8a0b84 100644 (file)
--- a/path.c
+++ b/path.c
/* Make sure it is a "refs/.." symlink */
if (S_ISLNK(st.st_mode)) {
len = readlink(path, buffer, sizeof(buffer)-1);
- if (len >= 11 && !memcmp("refs/heads/", buffer, 11))
+ if (len >= 5 && !memcmp("refs/", buffer, 5))
return 0;
return -1;
}
len -= 4;
while (len && isspace(*buf))
buf++, len--;
- if (len >= 11 && !memcmp("refs/heads/", buf, 11))
+ if (len >= 5 && !memcmp("refs/", buf, 5))
return 0;
}