We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f95b80 commit 5617bceCopy full SHA for 5617bce
runs/update_available_versions.sh
@@ -31,7 +31,7 @@ fi
31
if [[ ${branches[$index]} == *"HEAD"* ]]; then
32
unset 'branches[$index]'
33
else
34
- branches[index]="${branches[$index]//*\//}" # remove leading $GITREMOTE/ and whitespaces
+ branches[index]="${branches[$index]//*$GITREMOTE\//}" # remove leading whitespace and $GITREMOTE/
35
echo -n "checking commit for $GITREMOTE/${branches[$index]}..."
36
availableBranches[${branches[$index]}]=$(git -C "$OPENWBBASEDIR" log --pretty='format:%ci [%h]' -n1 "$GITREMOTE/${branches[$index]}")
37
echo "${availableBranches[${branches[$index]}]}"
0 commit comments