From 8bfd79b7933231fbec28bc90dd8f2918729d3a0f Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 24 Mar 2023 17:42:10 +0100 Subject: MR Tests: Separate git init and branch creation ... as `git init -b ...` is a rather recent git feature. --- test/buildtool/build_engine/base_maps/create_maps_test_git_bundle.sh | 3 ++- test/buildtool/file_system/create_fs_test_git_bundle.sh | 3 ++- test/end-to-end/just-mr/just-mr.test.sh | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'test') 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 . \ -- cgit v1.2.3