travis-ci: fix "skip_branch_tip_with_tag()" string comparison
09f5e97 ("travis-ci: skip a branch build if equal tag is present", 2017-09-17) introduced the "skip_branch_tip_with_tag" function with a broken string comparison. Fix it! Reported-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Lars Schneider committed
Sep 21, 2017 at 22:48 UTC
8376eb4a8f4f5e048d6be3b54f9e13577f53eafa
1 file changed
+1
-1
ci/lib-travisci.sh
+1
-1
@@ -14,7 +14,7 @@ skip_branch_tip_with_tag () {
14
# of a tag.
15
16
if TAG=$(git describe --exact-match "$TRAVIS_BRANCH" 2>/dev/null) &&
17
- $TAG != $TRAVIS_BRANCH
17
+ test "$TAG" != "$TRAVIS_BRANCH"
18
then
19
echo "Tip of $TRAVIS_BRANCH is exactly at $TAG"
20
exit 0