Skip to content

Commit 5617bce

Browse files
committed
fix stripping origin
1 parent 2f95b80 commit 5617bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runs/update_available_versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131
if [[ ${branches[$index]} == *"HEAD"* ]]; then
3232
unset 'branches[$index]'
3333
else
34-
branches[index]="${branches[$index]//*\//}" # remove leading $GITREMOTE/ and whitespaces
34+
branches[index]="${branches[$index]//*$GITREMOTE\//}" # remove leading whitespace and $GITREMOTE/
3535
echo -n "checking commit for $GITREMOTE/${branches[$index]}..."
3636
availableBranches[${branches[$index]}]=$(git -C "$OPENWBBASEDIR" log --pretty='format:%ci [%h]' -n1 "$GITREMOTE/${branches[$index]}")
3737
echo "${availableBranches[${branches[$index]}]}"

0 commit comments

Comments
 (0)