]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-revert.c
only textconv regular files
[git.git] / builtin-revert.c
index 84865397405d96aa4fdbfca801e8ecd47e3dea36..472554019afdb5e8e21f2d362f62f40eb569d8aa 100644 (file)
@@ -329,7 +329,8 @@ static int revert_or_cherry_pick(int argc, const char **argv)
         * reverse of it if we are revert.
         */
 
-       msg_fd = hold_lock_file_for_update(&msg_file, defmsg, 1);
+       msg_fd = hold_lock_file_for_update(&msg_file, defmsg,
+                                          LOCK_DIE_ON_ERROR);
 
        encoding = get_encoding(message);
        if (!encoding)