Skip to content

Commit b7a119f

Browse files
committed
ref: revert unrelated release.sh and workflow changes
The setup_git rewrite and bash -c workflow change are out of scope for the [[ → [ conversion and break Bash 3.0 CI.
1 parent b4b6763 commit b7a119f

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/tests-bash-3.0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ jobs:
9898
-v "$(pwd)":/bashunit \
9999
-w /bashunit \
100100
bashunit-bash3 \
101-
/opt/bash-3.0/bin/bash -c './bashunit ${{ matrix.flags }} tests/ 2>&1'
101+
/opt/bash-3.0/bin/bash ./bashunit ${{ matrix.flags }} tests/

release.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,12 @@ function release::sandbox::create() {
403403
}
404404

405405
function release::sandbox::setup_git() {
406-
git init --quiet "$SANDBOX_DIR"
407-
git -C "$SANDBOX_DIR" checkout -b main 2>/dev/null || true
408-
git -C "$SANDBOX_DIR" config user.name "Release Sandbox"
409-
git -C "$SANDBOX_DIR" config user.email "sandbox@local"
410-
git -C "$SANDBOX_DIR" add --all
411-
git -C "$SANDBOX_DIR" commit --quiet --allow-empty -m "Initial sandbox state"
412406
cd "$SANDBOX_DIR"
407+
git init --quiet
408+
git config user.name "Release Sandbox"
409+
git config user.email "sandbox@local"
410+
git add .
411+
git commit --quiet -m "Initial sandbox state"
413412
release::log_verbose "Initialized git repository in sandbox"
414413
}
415414

0 commit comments

Comments
 (0)