Skip to content

Commit 4387118

Browse files
committed
Fix unit test to use explicit default branch
1 parent 5bb4553 commit 4387118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ create_repo()
6262
mkdir -p "$(dirname "$repo/$file")"
6363
echo $RANDOM > "$repo/$file"
6464
done
65-
git -C "$repo" init
65+
git -C "$repo" init -b main
6666
git -C "$repo" add .
6767
git -C "$repo" commit -m "Initial commit"
6868
}
@@ -358,7 +358,7 @@ check_tar_content()
358358
echo $RANDOM > beta/new_file.txt
359359
git -C beta add .
360360
git -C beta commit -m "new file"
361-
git -C alpha/beta pull origin master
361+
git -C alpha/beta pull origin main
362362
echo $RANDOM > alpha/yet_another_file.txt
363363
git -C alpha add .
364364
git -C alpha commit -m "updated submodule"

0 commit comments

Comments
 (0)