From 36f8e995b235625657923518c73038cbf51ed3c7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 23 Feb 2021 20:52:14 +0300 Subject: Fix test failing due to 'default branch name is subject to change' git 2.30 warning --- tests/ci.testscript | 4 ++-- tests/publish.testscript | 2 +- tests/release.testscript | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ci.testscript b/tests/ci.testscript index 7c106ee..9aae4ea 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 2>! >&2 &prj.git/*** ++git -C prj.git init --bare --quiet &prj.git/*** # Adjust the local repository and push it to the remote one. # @@ -241,7 +241,7 @@ windows = ($cxx.target.class == 'windows') # Create the remote repository. # +mkdir --no-cleanup prj.git - +git -C prj.git init --bare 2>! >&2 &prj.git/*** + +git -C prj.git init --bare --quiet &prj.git/*** # Create the local repository and push it to the remote one. # diff --git a/tests/publish.testscript b/tests/publish.testscript index 3427b1d..afcde71 100644 --- a/tests/publish.testscript +++ b/tests/publish.testscript @@ -376,7 +376,7 @@ g = git -C prj >! 2>! # Create the remote repository. # +mkdir --no-cleanup prj.git - +git -C prj.git init --bare >! &prj.git/*** + +git -C prj.git init --bare --quiet &prj.git/*** +$clone_prj diff --git a/tests/release.testscript b/tests/release.testscript index ff32db8..c39bbba 100644 --- a/tests/release.testscript +++ b/tests/release.testscript @@ -1103,7 +1103,7 @@ log2 = $gp2 log '--pretty=format:"%d %s"' # Create the remote repository. # +mkdir --no-cleanup prj.git - +git -C prj.git init --bare 2>! >&2 &prj.git/*** + +git -C prj.git init --bare --quiet &prj.git/*** # Create the local repository. # -- cgit v1.1