Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
check_connected: accept an env argument
[gitweb.git]
/
transport.c
diff --git
a/transport.c
b/transport.c
index 94d6dc3725a2bb091df66ce6fe266ddd5317ed02..4bc4eeae54ea96bbe48658eb3e6718590fee4350 100644
(file)
--- a/
transport.c
+++ b/
transport.c
@@
-1084,9
+1084,7
@@
static int refs_from_alternate_cb(struct alternate_object_database *e,
const struct ref *extra;
struct alternate_refs_data *cb = data;
- e->name[-1] = '\0';
- other = xstrdup(real_path(e->base));
- e->name[-1] = '/';
+ other = xstrdup(real_path(e->path));
len = strlen(other);
while (other[len-1] == '/')