Skip to content

Commit

Permalink
Merge pull request #20 from namelessjon/separate-git
Browse files Browse the repository at this point in the history
Avoid re-init with --separate-git-dir
  • Loading branch information
Daniel Choi committed Aug 23, 2012
2 parents 4b1f32d + e2f3792 commit cc146c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/soywiki.vim
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ endfunc

call s:global_mappings()

if (!isdirectory(".git"))
" also catch detched git directories
if (!isdirectory(".git")&&!filereadable(".git"))
call system("git init")
echom "Created .git repository to store revisions"
endif
Expand Down

0 comments on commit cc146c0

Please sign in to comment.