summaryrefslogtreecommitdiff
path: root/builtin/am.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-12-28 10:41:41 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-01-15 15:38:29 -0800
commit0aa9d8aa6ce429f0fa04e1ca819ed766c211e242 (patch)
treea1300182f22bf55f45b5769673cabc6535666dd7 /builtin/am.c
parentMerge branch 'sb/more-repo-in-api' into md/list-objects-filter-by-depth (diff)
parentrebase-interactive.c: remove the_repository references (diff)
downloadtgif-0aa9d8aa6ce429f0fa04e1ca819ed766c211e242.tar.xz
Merge branch 'nd/the-index' into md/list-objects-filter-by-depth
Diffstat (limited to 'builtin/am.c')
-rw-r--r--builtin/am.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 8f27f3375b..95370313b6 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -1970,7 +1970,7 @@ static int clean_index(const struct object_id *head, const struct object_id *rem
if (merge_tree(remote_tree))
return -1;
- remove_branch_state();
+ remove_branch_state(the_repository);
return 0;
}
@@ -1981,7 +1981,7 @@ static int clean_index(const struct object_id *head, const struct object_id *rem
static void am_rerere_clear(void)
{
struct string_list merge_rr = STRING_LIST_INIT_DUP;
- rerere_clear(&merge_rr);
+ rerere_clear(the_repository, &merge_rr);
string_list_clear(&merge_rr, 1);
}