Don't run pre-commit hook on merge

This commit is contained in:
Tim Pope 2014-07-07 21:23:22 -04:00
parent 11f89ba749
commit 9af975c82c

View File

@ -1165,7 +1165,7 @@ function! s:Merge(cmd, bang, args) abort
if empty(filter(getqflist(),'v:val.valid')) if empty(filter(getqflist(),'v:val.valid'))
if !had_merge_msg && filereadable(s:repo().dir('MERGE_MSG')) if !had_merge_msg && filereadable(s:repo().dir('MERGE_MSG'))
cclose cclose
return 'Gcommit --no-status -t '.s:shellesc(s:repo().dir('MERGE_MSG')) return 'Gcommit --no-status -n -t '.s:shellesc(s:repo().dir('MERGE_MSG'))
endif endif
endif endif
let qflist = getqflist() let qflist = getqflist()