Skip to content

Commit 6ca99de

Browse files
committed
melting-pot: fix local tag check on Linux
Apparently, GNU grep doesn't like \t as tab? But \b works.
1 parent 0a90ffd commit 6ca99de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

melting-pot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ resolveSource() {
441441
# Check whether the needed branch/tag exists.
442442
local scmBranch
443443
test "$2" && scmBranch="$2" || scmBranch="$(scmTag "$1")"
444-
debug "git ls-remote \"file://$cachedRepoDir\" | grep -q \"\trefs/tags/$scmBranch$\""
445-
git ls-remote "file://$cachedRepoDir" | grep -q "\trefs/tags/$scmBranch$" || {
444+
debug "git ls-remote \"file://$cachedRepoDir\" | grep -q \"\brefs/tags/$scmBranch$\""
445+
git ls-remote "file://$cachedRepoDir" | grep -q "\brefs/tags/$scmBranch$" || {
446446
# Couldn't find the scmBranch as a tag in the cached repo. Either the
447447
# tag is new, or it's not a tag ref at all (e.g. it's a branch).
448448
# So let's update from the original remote repository.

0 commit comments

Comments
 (0)