Merge branch 'jc/ws-error-highlight'
[gitweb.git] / transport.c
index a85801042b012c2e2684cbb4e5e3dc1925e43582..079499dbafd749aaaebcac96d717893c8919ef23 100644 (file)
@@ -1096,9 +1096,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] == '/')