repository.c: replace hold_locked_index() with repo_hold_locked_index()
[gitweb.git] / merge-recursive.c
index ecf8db0b716ff20305425937c26ab6b8e69d33ed..8dba939d8f8393151a4ba2c1865c59f5c7a101fd 100644 (file)
@@ -3643,7 +3643,7 @@ int merge_recursive_generic(struct merge_options *o,
                }
        }
 
-       hold_locked_index(&lock, LOCK_DIE_ON_ERROR);
+       repo_hold_locked_index(the_repository, &lock, LOCK_DIE_ON_ERROR);
        clean = merge_recursive(o, head_commit, next_commit, ca,
                                result);
        if (clean < 0) {