Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
for_each_alternate_ref: stop trimming trailing slashes
[gitweb.git]
/
transport.c
diff --git
a/transport.c
b/transport.c
index 9ce0ee96bac58b4a2e4e01f360a5976e8b79b71a..6fba9e95b24de3376dd166ef2ff4ddacf1baa494 100644
(file)
--- a/
transport.c
+++ b/
transport.c
@@
-1226,8
+1226,6
@@
static int refs_from_alternate_cb(struct alternate_object_database *e,
return 0;
len = strlen(other);
- while (other[len-1] == '/')
- other[--len] = '\0';
if (len < 8 || memcmp(other + len - 8, "/objects", 8))
goto out;
/* Is this a git repository with refs? */