Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/scripts/tests/test_release_automation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ pass
# --- Release script integration tests (hermetic, local bare remote) ----------

setup_remote() {
local remote="$TEMP_DIR/remote-$RANDOM.git"
local remote
remote=$(mktemp -d "$TEMP_DIR/remote-XXXXXX") || return 1
git init --bare --quiet "$remote"
git --git-dir="$remote" config core.hooksPath /dev/null
echo "$remote"
Expand All @@ -172,7 +173,8 @@ setup_remote() {
setup_work() {
local remote=$1
local branch=$2
local work="$TEMP_DIR/work-$RANDOM"
local work
work=$(mktemp -d "$TEMP_DIR/work-XXXXXX") || return 1
git init --quiet -b "$branch" "$work"
git -C "$work" config user.name "Release Test"
git -C "$work" config user.email "release-test@example.invalid"
Expand Down
Loading