diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-10-22 04:58:01 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-22 04:58:01 +0400 |
commit | 6af50f7536d559f891d08597203ba605726511d6 (patch) | |
tree | 3f72c088340951d221afc6162c7ec30b96826cdc /http-push.c | |
parent | d67dd17b336a1f39760324b6cc05eaee17b5f124 (diff) | |
parent | 59c69c0c656ebce2f7ce870b4913512597a98390 (diff) |
Merge branch 'rs/alloc-ref'
* rs/alloc-ref:
make alloc_ref_from_str() the new alloc_ref()
use alloc_ref_from_str() everywhere
add alloc_ref_with_prefix()
Diffstat (limited to 'http-push.c')
-rw-r--r-- | http-push.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http-push.c b/http-push.c index 42f4d78e54..5cecef434a 100644 --- a/http-push.c +++ b/http-push.c @@ -1780,7 +1780,7 @@ static void one_remote_ref(char *refname) struct ref *ref; struct object *obj; - ref = alloc_ref_from_str(refname); + ref = alloc_ref(refname); if (http_fetch_ref(remote->url, ref) != 0) { fprintf(stderr, @@ -1887,7 +1887,7 @@ static void add_remote_info_ref(struct remote_ls_ctx *ls) char *ref_info; struct ref *ref; - ref = alloc_ref_from_str(ls->dentry_name); + ref = alloc_ref(ls->dentry_name); if (http_fetch_ref(remote->url, ref) != 0) { fprintf(stderr, |