Permalink
Browse files

Fix for paths not in Git root

  • Loading branch information...
1 parent 25d782c commit c4dc30fe575dbb4cd707f4d3d78077477cd64f62 @Mortal committed Apr 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 scmdiff.vim
View
@@ -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 != ''

0 comments on commit c4dc30f

Please sign in to comment.