summaryrefslogtreecommitdiff
path: root/builtin/merge-ours.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/merge-ours.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/merge-ours.c')
-rw-r--r--builtin/merge-ours.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/merge-ours.c b/builtin/merge-ours.c
index c84c6e05e9..0b07263415 100644
--- a/builtin/merge-ours.c
+++ b/builtin/merge-ours.c
@@ -26,7 +26,7 @@ int cmd_merge_ours(int argc, const char **argv, const char *prefix)
*/
if (read_cache() < 0)
die_errno("read_cache failed");
- if (index_differs_from("HEAD", NULL, 0))
+ if (index_differs_from(the_repository, "HEAD", NULL, 0))
exit(2);
exit(0);
}