aboutsummaryrefslogtreecommitdiffstats
path: root/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'reset.c')
-rw-r--r--reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reset.c b/reset.c
index 59ebb1f842..937f11c0f4 100644
--- a/reset.c
+++ b/reset.c
@@ -72,7 +72,7 @@ static int update_refs(const struct reset_head_opts *opts,
switch_to_branch, oid, NULL, 0,
UPDATE_REFS_MSG_ON_ERR);
if (!ret)
- ret = refs_create_symref(get_main_ref_store(the_repository),
+ ret = refs_update_symref(get_main_ref_store(the_repository),
"HEAD", switch_to_branch,
reflog_head);
}