lib/docman/git_util.rb in docman-0.0.74 vs lib/docman/git_util.rb in docman-0.0.75
- old
+ new
@@ -79,9 +79,10 @@
end
def self.commit(root_path, path, message, tag = nil)
if repo_changed? path
# pull root_path
+ Dir.chdir root_path
exec %Q(add --all #{path.slice "#{root_path}/"})
exec %Q(commit -m "#{message}") if repo_changed? path
self.tag(root_path, tag) if tag
Docman::Application.instance.commit_count = Docman::Application.instance.commit_count + 1
end
\ No newline at end of file