]> Sergey Matveev's repositories - codecomm.git/commitdiff
Modern Fugitive compatibility
authorSergey Matveev <stargrave@stargrave.org>
Sun, 31 Oct 2021 14:05:23 +0000 (17:05 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 31 Oct 2021 14:05:23 +0000 (17:05 +0300)
plugin/codecomm.vim

index 27bd890d4be5020c83b604e16a35ccec9d81bcc3..8a38d898978f0fce56cd57ad0f1f1dcd93cc128b 100644 (file)
@@ -25,7 +25,7 @@ function! s:CodeComm() range
     let g:codecomm_count += 1
     " Determine file's path inside repository
     let path = expand("%:p")
-    let path = substitute(path, fugitive#extract_git_dir(".")[:-5], "", "")
+    let path = substitute(path, FugitiveExtractGitDir(getcwd())[:-5], "", "")
     let path = substitute(path, "^.*\.git//", "", "")
     " Header generation
     let header = []