Mailinglist Archive: yast-commit (1535 mails)
| < Previous | Next > |
[yast-commit] <rest-service> master : Fail if git push fails.
- From: Martin Vidner <mvidner@xxxxxxx>
- Date: Thu, 22 Oct 2009 10:18:50 +0200
- Message-id: <E1N0szo-0002ML-A2@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 55dbe75867015b7c4546a6252a680c6bbe354232
Author: Martin Vidner <mvidner@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
commit 55dbe75867015b7c4546a6252a680c6bbe354232
Author: Martin Vidner <mvidner@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |