Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
compat/cygwin.c: make runtime detection of lstat/stat lessor impact
[gitweb.git]
/
builtin-revert.c
diff --git
a/builtin-revert.c
b/builtin-revert.c
index 84865397405d96aa4fdbfca801e8ecd47e3dea36..472554019afdb5e8e21f2d362f62f40eb569d8aa 100644
(file)
--- a/
builtin-revert.c
+++ b/
builtin-revert.c
@@
-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)