Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion t/t9001-subdir-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ TEST_DIRECTORY=$(cd "$(dirname "$0")" && pwd)
# Setup: create upstream repository
test_expect_success 'setup: create upstream repository' '
mkdir -p upstream &&
(cd upstream && git init --bare)
(cd upstream &&
git init --bare &&
git symbolic-ref HEAD refs/heads/main)
'

test_expect_success 'setup: create working clone' '
Expand Down
1 change: 1 addition & 0 deletions t/t9004-workspace-routing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ test_expect_success 'setup: create repository with initial commit' '
mkdir repo &&
(cd repo &&
git init &&
git symbolic-ref HEAD refs/heads/main &&
git config user.email "test@example.com" &&
git config user.name "Test User" &&
echo "hello" > README.md &&
Expand Down
4 changes: 3 additions & 1 deletion t/t9005-workspace-commit-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ TEST_DIRECTORY=$(cd "$(dirname "$0")" && pwd)

test_expect_success 'setup: create upstream bare repository and working clone' '
mkdir upstream.git &&
(cd upstream.git && git init --bare) &&
(cd upstream.git &&
git init --bare &&
git symbolic-ref HEAD refs/heads/main) &&
git clone upstream.git work &&
(cd work &&
git config user.email "test@example.com" &&
Expand Down
Loading