# HG changeset patch # User Martin von Zweigbergk # Date 1602188358 25200 # Node ID 0c18493287f5835ce94d8d002fc18e2527e85aca # Parent 04aa48afab990ef5609d08bc9bbc6f96696a34f2 tests: set git config using `git config` for simplicity I also took the liberty to not set the same config value twice as we did before. Differential Revision: https://phab.mercurial-scm.org/D9176 diff -r 04aa48afab99 -r 0c18493287f5 tests/test-convert-git.t --- a/tests/test-convert-git.t Thu Oct 08 13:10:16 2020 -0700 +++ b/tests/test-convert-git.t Thu Oct 08 13:19:18 2020 -0700 @@ -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 <