Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: If1d091bd9e94fa5337053094b0101541bb056ca4
--- /dev/null
+---
+fixes:
+ - |
+ Fix condition before pushing the object.
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"