Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make git-fetch-pack and git-upload-pack negotiate needs/haves fully
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index 447080edde385a470a815944c2f002c1e51699a5..7ccd721a4abdfec68fa9cab1f380569152fe61e9 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-26,6
+26,11
@@
static int do_for_each_ref(const char *base, int (*fn)(const char *path, const u
struct dirent *de;
int baselen = strlen(base);
char *path = xmalloc(baselen + 257);
+
+ if (!strncmp(base, "./", 2)) {
+ base += 2;
+ baselen -= 2;
+ }
memcpy(path, base, baselen);
if (baselen && base[baselen-1] != '/')
path[baselen++] = '/';