Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Enhance hold_lock_file_for_{update,append}() API
[gitweb.git]
/
builtin-revert.c
diff --git
a/builtin-revert.c
b/builtin-revert.c
index 27881e94937dd79b9a0524eb2d9770427ec4f4fb..e839387629461be24c0bf1dacaa3cdb48cb2a5f4 100644
(file)
--- a/
builtin-revert.c
+++ b/
builtin-revert.c
@@
-338,7
+338,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)