submodules: load gitmodules file from commit sha1
[gitweb.git] / transport.c
index d57e8dec28d6890ce981a8422e9b8b60b697ecd6..236c6f6b095ad508c57e6ff1048d3b7ca623ca2e 100644 (file)
@@ -1130,7 +1130,7 @@ static int refs_from_alternate_cb(struct alternate_object_database *e,
        const struct ref *extra;
        struct alternate_refs_data *cb = data;
 
-       other = xstrdup(real_path(e->path));
+       other = real_pathdup(e->path);
        len = strlen(other);
 
        while (other[len-1] == '/')