tmp-objdir: put quarantine information in the environment
[gitweb.git] / transport.c
index 94d6dc3725a2bb091df66ce6fe266ddd5317ed02..4bc4eeae54ea96bbe48658eb3e6718590fee4350 100644 (file)
@@ -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] == '/')