aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/pull.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-05-16 09:48:46 -0700
committerJunio C Hamano <gitster@pobox.com>2024-05-16 09:48:46 -0700
commit46536278a8b77de9b8726799c998b4b82ee9a7d9 (patch)
tree4094657e4daa72326ff2efaedd4114d43078102e /builtin/pull.c
parent19fe900cfce8096b7645ec9611a0b981f6bbd154 (diff)
parentc8f815c2083c4b340d4148a15d45c55f2fcc7d3f (diff)
downloadgit-46536278a8b77de9b8726799c998b4b82ee9a7d9.tar.gz
Merge branch 'ps/refs-without-the-repository' into ps/refs-without-the-repository-updates
* ps/refs-without-the-repository: refs: remove functions without ref store cocci: apply rules to rewrite callers of "refs" interfaces cocci: introduce rules to transform "refs" to pass ref store refs: add `exclude_patterns` parameter to `for_each_fullref_in()` refs: introduce missing functions that accept a `struct ref_store`
Diffstat (limited to 'builtin/pull.c')
-rw-r--r--builtin/pull.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pull.c b/builtin/pull.c
index 66869210db..d622202bce 100644
--- a/builtin/pull.c
+++ b/builtin/pull.c
@@ -611,7 +611,7 @@ static int pull_into_void(const struct object_id *merge_head,
merge_head, 0))
return 1;
- if (update_ref("initial pull", "HEAD", merge_head, curr_head, 0, UPDATE_REFS_DIE_ON_ERR))
+ if (refs_update_ref(get_main_ref_store(the_repository), "initial pull", "HEAD", merge_head, curr_head, 0, UPDATE_REFS_DIE_ON_ERR))
return 1;
return 0;