aboutsummaryrefslogtreecommitdiff
path: root/tests/ci.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-06-22 15:49:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-06-22 19:31:26 +0300
commitc2404728b623588aa89920ae435b48af0fef011e (patch)
treeba739c37837b71dbc8881cad81204ac2ee6f50e4 /tests/ci.testscript
parentf95f24412ea85149556b34abb91f06e247d6db6d (diff)
Add branch sub-option for git project vcs in bdep-new
Also fix tests which failed if for the initial branch git-init defaults to the name other than 'master'.
Diffstat (limited to 'tests/ci.testscript')
-rw-r--r--tests/ci.testscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ci.testscript b/tests/ci.testscript
index cff198b..d604aa7 100644
--- a/tests/ci.testscript
+++ b/tests/ci.testscript
@@ -20,7 +20,7 @@ end
# Create the remote repository.
#
+mkdir --no-cleanup prj.git
-+git -C prj.git init --bare --quiet &prj.git/***
++git -C prj.git -c init.defaultBranch=master init --bare --quiet &prj.git/***
# Adjust the local repository and push it to the remote one.
#
@@ -53,7 +53,7 @@ test.arguments += --yes --repository "$repository" --server "$server" \
config_cxx = [cmdline] cc config.cxx=$quote($recall($cxx.path) $cxx.config.mode, true)
-new += 2>!
+new += --vcs git,branch=master 2>!
init += $config_cxx -d prj 2>! &prj/**/bootstrap/***
windows = ($cxx.target.class == 'windows')
@@ -663,7 +663,7 @@ windows = ($cxx.target.class == 'windows')
# Create the remote repository.
#
+mkdir --no-cleanup prj.git
- +git -C prj.git init --bare --quiet &prj.git/***
+ +git -C prj.git -c init.defaultBranch=master init --bare --quiet &prj.git/***
# Create the local repository and push it to the remote one.
#