soywiki 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/soywiki.rb +1 -1
- data/lib/soywiki.vim +5 -1
- metadata +1 -1
data/lib/soywiki.rb
CHANGED
data/lib/soywiki.vim
CHANGED
@@ -259,7 +259,11 @@ func! s:rename_page(page_path_or_title)
|
|
259
259
|
write!
|
260
260
|
call system("mkdir -p " . s:namespace_of_title(page_title))
|
261
261
|
let original_file = bufname('')
|
262
|
-
|
262
|
+
if executable("git"
|
263
|
+
echo system("git mv " . original_file . " " . newfile)
|
264
|
+
else
|
265
|
+
echo system("mv " . original_file . " " . newfile)
|
266
|
+
endif
|
263
267
|
call system("git commit -am 'rename wiki page'")
|
264
268
|
exec "!" . s:rename_links_command . original_file . " " . newfile
|
265
269
|
call system("git commit -am 'rename wiki links'")
|