lib/soywiki.vim in soywiki-0.9.1 vs lib/soywiki.vim in soywiki-0.9.2
- old
+ new
@@ -684,10 +684,11 @@
endif
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
" compress the repo
call system("git gc")