lib/synvert/snippet.rb in synvert-0.16.0 vs lib/synvert/snippet.rb in synvert-0.17.0
- old
+ new
@@ -17,10 +17,10 @@
# synchronize snippets from github.
def sync
if File.exist?(@snippets_path)
FileUtils.cd @snippets_path
- Kernel.system('git pull --rebase')
+ Kernel.system('git checkout .; git pull --rebase')
else
Kernel.system("git clone https://github.com/xinminlabs/synvert-snippets.git #{@snippets_path}")
end
end
end