Browse files

Avoid re-init with --separate-git-dir

  • Loading branch information...
1 parent 4b1f32d commit e2f379291191ccacc32315869e23bf9817669f81 @namelessjon namelessjon committed Jan 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/soywiki.vim
View
3 lib/soywiki.vim
@@ -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

0 comments on commit e2f3792

Please sign in to comment.