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 = []