lib/docman/git_util.rb in docman-0.0.83 vs lib/docman/git_util.rb in docman-0.0.84
- old
+ new
@@ -23,10 +23,12 @@
end
def self.reset_repo(path)
Dir.chdir path
exec 'reset --hard'
- exec 'clean -f -d'
+ exec 'clean -f -d -x --dry-run'
+ exec 'status'
+ exec 'clean -f -d -x'
end
def self.get(repo, path, type, version, single_branch = nil, depth = nil, reset = false)
FileUtils.rm_rf path if reset and File.directory? path
if File.directory? path and File.directory?(File.join(path, '.git'))