summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/transport.c b/transport.c
index 9ce0ee9..6fba9e9 100644
--- 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? */