diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-22 15:49:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-22 19:31:26 +0300 |
commit | c2404728b623588aa89920ae435b48af0fef011e (patch) | |
tree | ba739c37837b71dbc8881cad81204ac2ee6f50e4 /tests/publish.testscript | |
parent | f95f24412ea85149556b34abb91f06e247d6db6d (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/publish.testscript')
-rw-r--r-- | tests/publish.testscript | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/publish.testscript b/tests/publish.testscript index 1fd8d38..41b5eed 100644 --- a/tests/publish.testscript +++ b/tests/publish.testscript @@ -22,7 +22,7 @@ test.arguments += --repository "$repository" --yes \ 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') @@ -438,7 +438,7 @@ g = [cmdline] git -C prj >! 2>! # 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/*** +$clone_prj |