grep: use grep_opt->repo instead of explict repo argument
[gitweb.git] / builtin / merge-ours.c
index c84c6e05e922f09692b9b133cd391b850c7951df..0b07263415785e11c7fc5b1a6da40a25e969b73c 100644 (file)
@@ -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);
 }