Fix restoring of $GIT_INDEX_FILE

This commit is contained in:
Tim Pope
2010-03-09 19:13:28 -05:00
parent f05eb566e6
commit 1548f141e0

View File

@@ -1293,7 +1293,7 @@ function! s:ReplaceCmd(cmd,...) abort
finally
let &autowrite = aw
if exists('old_index')
let $GIT_INDEX_FILE = 'old_index'
let $GIT_INDEX_FILE = old_index
endif
endtry
silent exe 'keepalt file '.tmp