From aaf5b34366138dff810565446e640cb4b8476a7f Mon Sep 17 00:00:00 2001
From: Tim Pope <code@tpope.net>
Date: Mon, 9 May 2011 08:37:24 -0400
Subject: [PATCH] Fix garbling on :Gcommit when nothing is staged

Fixes #68.
---
 plugin/fugitive.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
index d8a8ba85..0f35c853 100644
--- a/plugin/fugitive.vim
+++ b/plugin/fugitive.vim
@@ -1621,7 +1621,7 @@ function! s:ReplaceCmd(cmd,...) abort
       endif
     endif
     set noautowrite
-    silent exe '!'.escape(prefix.a:cmd,'%#').' > '.tmp
+    call system(prefix.a:cmd.' > '.tmp)
   finally
     let &autowrite = aw
     if exists('old_index')
-- 
GitLab