Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-10-22 04:58:01 +0400
committerJunio C Hamano <gitster@pobox.com>2008-10-22 04:58:01 +0400
commit6af50f7536d559f891d08597203ba605726511d6 (patch)
tree3f72c088340951d221afc6162c7ec30b96826cdc /walker.c
parentd67dd17b336a1f39760324b6cc05eaee17b5f124 (diff)
parent59c69c0c656ebce2f7ce870b4913512597a98390 (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 'walker.c')
-rw-r--r--walker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/walker.c b/walker.c
index 6b4cf70c6a..679adab6a0 100644
--- a/walker.c
+++ b/walker.c
@@ -191,7 +191,7 @@ static int interpret_target(struct walker *walker, char *target, unsigned char *
if (!get_sha1_hex(target, sha1))
return 0;
if (!check_ref_format(target)) {
- struct ref *ref = alloc_ref_from_str(target);
+ struct ref *ref = alloc_ref(target);
if (!walker->fetch_ref(walker, ref)) {
hashcpy(sha1, ref->old_sha1);
free(ref);