Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1-name.c: remove implicit dependency on the_index
[gitweb.git]
/
builtin
/
merge-ours.c
diff --git
a/builtin/merge-ours.c
b/builtin/merge-ours.c
index c84c6e05e922f09692b9b133cd391b850c7951df..0b07263415785e11c7fc5b1a6da40a25e969b73c 100644
(file)
--- 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);
}