ref: refs/heads/master
commit 55dbe75867015b7c4546a6252a680c6bbe354232
Author: Martin Vidner
Date: Wed Oct 21 15:11:19 2009 +0200
Fail if git push fails.
---
webservice-tasks/lib/tasks/git_push.rake | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/webservice-tasks/lib/tasks/git_push.rake b/webservice-tasks/lib/tasks/git_push.rake
index 83ea825..934ea05 100644
--- a/webservice-tasks/lib/tasks/git_push.rake
+++ b/webservice-tasks/lib/tasks/git_push.rake
@@ -3,6 +3,7 @@ require 'rake'
desc "Push to git repository. Don't use directly, use push instead!"
task :git_push do
out = `git push`
+ raise if $?.exitstatus != 0
puts '* GIT push OK'
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org