comparison tests/test-convert-git.t @ 45684:0c18493287f5

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
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 08 Oct 2020 13:19:18 -0700
parents 04aa48afab99
children bff719525815
comparison
equal deleted inserted replaced
45683:04aa48afab99 45684:0c18493287f5
1 #require git 1 #require git
2 2
3 $ echo "[init]" >> $HOME/.gitconfig 3 $ git config -f $HOME/.gitconfig init.defaultBranch master
4 $ echo "defaultBranch = master" >> $HOME/.gitconfig 4 $ git config -f $HOME/.gitconfig core.autocrlf false
5 $ echo "[core]" >> $HOME/.gitconfig
6 $ echo "autocrlf = false" >> $HOME/.gitconfig
7 $ echo "[core]" >> $HOME/.gitconfig
8 $ echo "autocrlf = false" >> $HOME/.gitconfig
9 $ echo "[extensions]" >> $HGRCPATH 5 $ echo "[extensions]" >> $HGRCPATH
10 $ echo "convert=" >> $HGRCPATH 6 $ echo "convert=" >> $HGRCPATH
11 $ cat >> $HGRCPATH <<EOF 7 $ cat >> $HGRCPATH <<EOF
12 > [subrepos] 8 > [subrepos]
13 > git:allowed = true 9 > git:allowed = true