From patchwork Thu Oct 8 20:19:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D9176: tests: set git config using `git config` for simplicity From: phabricator X-Patchwork-Id: 47411 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Thu, 8 Oct 2020 20:19:52 +0000 martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY I also took the liberty to not set the same config value twice as we did before. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9176 AFFECTED FILES tests/test-convert-git.t CHANGE DETAILS To: martinvonz, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/tests/test-convert-git.t b/tests/test-convert-git.t --- a/tests/test-convert-git.t +++ b/tests/test-convert-git.t @@ -1,11 +1,7 @@ #require git - $ echo "[init]" >> $HOME/.gitconfig - $ echo "defaultBranch = master" >> $HOME/.gitconfig - $ echo "[core]" >> $HOME/.gitconfig - $ echo "autocrlf = false" >> $HOME/.gitconfig - $ echo "[core]" >> $HOME/.gitconfig - $ echo "autocrlf = false" >> $HOME/.gitconfig + $ git config -f $HOME/.gitconfig init.defaultBranch master + $ git config -f $HOME/.gitconfig core.autocrlf false $ echo "[extensions]" >> $HGRCPATH $ echo "convert=" >> $HGRCPATH $ cat >> $HGRCPATH <