Added failing env test with .gitconfig file
This commit is contained in:
parent
1b555160f0
commit
6e0e7ab946
@ -202,7 +202,44 @@ $(env | grep "^GIT")
|
|||||||
[ "$expected" = "$actual" ]
|
[ "$expected" = "$actual" ]
|
||||||
|
|
||||||
cd .git
|
cd .git
|
||||||
|
expected2=$(echo "$expected" | sed -e 's/LocalWorkingDir=.*/LocalWorkingDir=/')
|
||||||
[ "$expected" = "$actual" ]
|
actual2=$(git lfs env)
|
||||||
|
[ "$expected2" = "$actual2" ]
|
||||||
|
)
|
||||||
|
end_test
|
||||||
|
|
||||||
|
begin_test "env with .gitconfig"
|
||||||
|
(
|
||||||
|
set -e
|
||||||
|
reponame="env-with-gitconfig"
|
||||||
|
|
||||||
|
git init $reponame
|
||||||
|
cd $reponame
|
||||||
|
|
||||||
|
git remote add origin "$GITSERVER/env-origin-remote"
|
||||||
|
echo '[remote "origin"]
|
||||||
|
lfsurl = http://foobar:8080/
|
||||||
|
[lfs]
|
||||||
|
batch = true
|
||||||
|
concurrenttransfers = 5
|
||||||
|
' > .gitconfig
|
||||||
|
|
||||||
|
expected=$(printf "Endpoint=http://foobar:8080/
|
||||||
|
LocalWorkingDir=$TRASHDIR/$reponame
|
||||||
|
LocalGitDir=$TRASHDIR/$reponame/.git
|
||||||
|
LocalMediaDir=$TRASHDIR/$reponame/.git/lfs/objects
|
||||||
|
TempDir=$TRASHDIR/$reponame/.git/lfs/tmp
|
||||||
|
ConcurrentTransfers=5
|
||||||
|
BatchTransfer=true
|
||||||
|
$(env | grep "^GIT")
|
||||||
|
")
|
||||||
|
|
||||||
|
actual=$(git lfs env)
|
||||||
|
[ "$expected" = "$actual" ]
|
||||||
|
|
||||||
|
mkdir a
|
||||||
|
cd a
|
||||||
|
actual2=$(git lfs env)
|
||||||
|
[ "$expected" = "$actual2" ]
|
||||||
)
|
)
|
||||||
end_test
|
end_test
|
||||||
|
Loading…
Reference in New Issue
Block a user