summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2016-06-18 06:15:10 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-20 11:38:18 -0700
commitc5f04dddb6cf5f76adfe145de3565411711255b8 (patch)
tree99851bcc88f8d5fcb688d1805c2177c3a6766aa0 /builtin/fetch.c
parentrefs: use name "prefix" consistently (diff)
downloadtgif-c5f04dddb6cf5f76adfe145de3565411711255b8.tar.xz
delete_refs(): add a flags argument
This will be useful for passing REF_NODEREF through. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index f8455bde7a..b55c83c468 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -806,7 +806,7 @@ static int prune_refs(struct refspec *refs, int ref_count, struct ref *ref_map,
for (ref = stale_refs; ref; ref = ref->next)
string_list_append(&refnames, ref->name);
- result = delete_refs(&refnames);
+ result = delete_refs(&refnames, 0);
string_list_clear(&refnames, 0);
}