summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/buildtool/build_engine/base_maps/create_maps_test_git_bundle.sh3
-rw-r--r--test/buildtool/file_system/create_fs_test_git_bundle.sh3
-rw-r--r--test/end-to-end/just-mr/just-mr.test.sh3
3 files changed, 6 insertions, 3 deletions
diff --git a/test/buildtool/build_engine/base_maps/create_maps_test_git_bundle.sh b/test/buildtool/build_engine/base_maps/create_maps_test_git_bundle.sh
index 19678938..dda43340 100644
--- a/test/buildtool/build_engine/base_maps/create_maps_test_git_bundle.sh
+++ b/test/buildtool/build_engine/base_maps/create_maps_test_git_bundle.sh
@@ -52,7 +52,8 @@ mkdir -p test_repo
cd test_repo
# create the repo
-git init -b master > /dev/null
+git init > /dev/null
+git checkout -q -b master
git config user.name "Nobody"
git config user.email "nobody@example.org"
diff --git a/test/buildtool/file_system/create_fs_test_git_bundle.sh b/test/buildtool/file_system/create_fs_test_git_bundle.sh
index d11d4b17..96cc3608 100644
--- a/test/buildtool/file_system/create_fs_test_git_bundle.sh
+++ b/test/buildtool/file_system/create_fs_test_git_bundle.sh
@@ -51,7 +51,8 @@ cp foo baz/baz/foo
cp bar baz/baz/bar
# create the repo
-git init -b master > /dev/null
+git init > /dev/null
+git checkout -q -b master
git config user.name "Nobody"
git config user.email "nobody@example.org"
diff --git a/test/end-to-end/just-mr/just-mr.test.sh b/test/end-to-end/just-mr/just-mr.test.sh
index fa18477c..3532f8a7 100644
--- a/test/end-to-end/just-mr/just-mr.test.sh
+++ b/test/end-to-end/just-mr/just-mr.test.sh
@@ -72,7 +72,8 @@ EOF
(
cd "${GIT_ROOT}" \
&& sh "${SERVER_ROOT}/bin/git_dir_setup.sh" \
- && git init -b test \
+ && git init \
+ && git checkout -q -b test \
&& git config user.email "nobody@example.org" \
&& git config user.name "Nobody" \
&& git add . \