Avoid using non-portable `echo -n` in tests.
[gitweb.git] / connect.c
index b69060bca0917cf84612f861dbc8be5d1c6f775c..0c50d0a26a493f4505eee16812d14c5d7d1b7392 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -90,7 +90,7 @@ struct ref **get_remote_heads(int in, struct ref **list,
                        continue;
                if (nr_match && !path_match(name, nr_match, match))
                        continue;
-               ref = alloc_ref_from_str(buffer + 41);
+               ref = alloc_ref(buffer + 41);
                hashcpy(ref->old_sha1, old_sha1);
                *list = ref;
                list = &ref->next;