diff --git a/plugin/magit.vim b/plugin/magit.vim index 8028b601e4fb88d536821f26ce159a82e01d31d6..b2015195ad20f0c568dc7abc7934e9db7255e301 100644 --- a/plugin/magit.vim +++ b/plugin/magit.vim @@ -348,7 +348,8 @@ function! s:mg_git_commit(mode) abort echoerr "Commit fix failed" endtry else - let commit_flag="" + let cleanup_cfg = magit#git#get_config('commit.cleanup', 'strip') + let commit_flag=" --cleanup=" . cleanup_cfg . " " if ( a:mode != 'CA' && empty( magit#get_staged_files() ) ) let choice = confirm( \ "Do you really want to commit without any staged files?",