Fixed issue with git commit silently failing.

Also updated status task and installation instuctions.
This commit is contained in:
David Barri 2012-11-08 10:47:11 +11:00
parent 5add5f760e
commit 6f25967c47
3 changed files with 28 additions and 4 deletions

View file

@ -191,8 +191,8 @@ module Gitlab
def push tmp_dir
Dir.chdir(File.join(tmp_dir, "gitolite"))
system('git add -A')
system('git commit -am "GitLab"')
raise "Git add failed." unless system('git add -A')
raise "Git commit failed." unless system('git commit -am "GitLab"')
if system('git push')
Dir.chdir(Rails.root)
else