Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix: condition before pushing the object.
[releng/global-jjb.git]
/
shell
/
release-job.sh
diff --git
a/shell/release-job.sh
b/shell/release-job.sh
index
56e37c3
..
24bb0d6
100644
(file)
--- a/
shell/release-job.sh
+++ b/
shell/release-job.sh
@@
-366,7
+366,7
@@
tag-git-repo(){
git config user.name "$RELEASE_USERNAME"
git config user.email "$RELEASE_EMAIL"
# Check if sentinal file exists
git config user.name "$RELEASE_USERNAME"
git config user.email "$RELEASE_EMAIL"
# Check if sentinal file exists
- if [[
!
-f .testhash ]]; then
+ if [[ -f .testhash ]]; then
git push origin "${GERRIT_BRANCH}" "$GIT_TAG"
else
git push origin "$GIT_TAG"
git push origin "${GERRIT_BRANCH}" "$GIT_TAG"
else
git push origin "$GIT_TAG"