Skip to content

Commit 8376eb4

Browse files
larsxschneidergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f67242c commit 8376eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/lib-travisci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ skip_branch_tip_with_tag () {
1414
# of a tag.
1515

1616
if TAG=$(git describe --exact-match "$TRAVIS_BRANCH" 2>/dev/null) &&
17-
$TAG != $TRAVIS_BRANCH
17+
test "$TAG" != "$TRAVIS_BRANCH"
1818
then
1919
echo "Tip of $TRAVIS_BRANCH is exactly at $TAG"
2020
exit 0

0 commit comments

Comments
 (0)