t5600: fix outdated comment about unborn HEAD
[gitweb.git] / sequencer.c
index 2882d5312078e6e732bb2167db6849609fedd6af..5e09b5d34fbcb0516ffdaf6a841a6a8ff47f4ea5 100644 (file)
@@ -438,7 +438,8 @@ static int do_recursive_merge(struct commit *base, struct commit *next,
        char **xopt;
        static struct lock_file index_lock;
 
-       hold_locked_index(&index_lock, LOCK_DIE_ON_ERROR);
+       if (hold_locked_index(&index_lock, LOCK_REPORT_ON_ERROR) < 0)
+               return -1;
 
        read_cache();