Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for paths not in Git root

  • Loading branch information...
commit c4dc30fe575dbb4cd707f4d3d78077477cd64f62 1 parent 25d782c
@Mortal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  scmdiff.vim
View
2  scmdiff.vim
@@ -69,7 +69,7 @@ function! s:scmDiff(...)
let ftype = &filetype
let b:scmDiffTmpfile = tempname()
- let cmd = 'cd ./' . expand('%:h') . ' && git show HEAD:' . expand('%:t') . ' > ' . b:scmDiffTmpfile
+ let cmd = 'cd ./' . expand('%:h') . ' && git show HEAD:./' . expand('%:t') . ' > ' . b:scmDiffTmpfile
let cmdOutput = system(cmd)
if v:shell_error && cmdOutput != ''
Please sign in to comment.
Something went wrong with that request. Please try again.