commit d63a475fcb73c782ce09d63a591d69481a62b30f (tree)
parent 2723a1116f352dc3690b653bdb534f9481e71850
Author: Tim Pope <code@tpope.net>
Date: Wed, 12 Dec 2012 22:40:04 -0500
Fix duplicate Signed-off-by lines
Closes #284.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -933,7 +933,7 @@ function! s:Commit(args) abort
let error = get(errors,-2,get(errors,-1,'!'))
if error =~# '\<false''\=\.$'
let args = a:args
- let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[se]|--edit|--interactive)%($| )','')
+ let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[es]|--edit|--interactive|--signoff)%($| )','')
let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-F|--file|-m|--message)%(\s+|\=)%(''[^'']*''|"%(\\.|[^"])*"|\\.|\S)*','')
let args = s:gsub(args,'%(^| )@<=[%#]%(:\w)*','\=expand(submatch(0))')
let args = '-F '.s:shellesc(msgfile).' '.args