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 beb0623d56323a0ea8912e54e94e66fa07268156..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", 0
, 0))
+ if (index_differs_from(
the_repository, "HEAD", NULL
, 0))
exit(2);
exit(0);
}