motemen / git-vim

My vim files for Git
575 stars 73 forks source link

Slash in paths #10

Open mjtorn opened 15 years ago

mjtorn commented 15 years ago

Hi

Tho GetGitDir() seems to return a path ending in /

-        let lines = readfile(git_dir . 'HEAD')
+        let lines = readfile(git_dir . '/HEAD')

-    execute printf('%s %sCOMMIT_EDITMSG', g:git_command_edit, git_dir)
+    execute printf('%s %s/COMMIT_EDITMSG', g:git_command_edit, git_dir)

(stupid formatting - you get the point ;)

patches are required for this to work.

Would you mind looking into this?

Thanks for the good work :)

mathstuf commented 14 years ago

Making a comment because I see no other way to keep updated on this bug besides manual checking.