Permalink
Browse files

Merge pull request #20 from namelessjon/separate-git

Avoid re-init with --separate-git-dir
  • Loading branch information...
2 parents 4b1f32d + e2f3792 commit cc146c0248ce05c2a76b898bde35b0dccaa92a13 @danchoi committed Aug 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/soywiki.vim
View
@@ -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 cc146c0

Please sign in to comment.