lib/docman/git_util.rb in docman-0.0.88 vs lib/docman/git_util.rb in docman-0.0.89
- old
+ new
@@ -93,12 +93,12 @@
# pull root_path
Dir.chdir root_path
exec %Q(add --all #{path.slice "#{root_path}/"})
if repo_changed? path
if Application::instance.options.has_key?('debug')
- exec %Q(commit --no-verify -m "#{message}")
+ exec %Q(commit --allow-empty --no-verify -m "#{message}")
else
- exec %Q(commit --quiet --no-verify -m "#{message}")
+ exec %Q(commit --allow-empty --quiet --no-verify -m "#{message}")
end
end
self.tag(root_path, tag) if tag
Docman::Application.instance.commit_count = Docman::Application.instance.commit_count + 1