-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #604 from rhubert/git-fixes
fix unit tests on arch linux
- Loading branch information
Showing
14 changed files
with
65 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ popd | |
# fill git repo | ||
D="$(mktemp -d)" | ||
pushd "$D" | ||
git init . | ||
git init -b master . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo "first" > first.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ rm -rf default.yaml | |
# init a git - repo | ||
gitDir=$(mktemp -d) | ||
pushd "${gitDir}" | ||
git init | ||
git init -b master | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo "git" > test.dat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ cp recipe1.yaml "$bob/recipes/t.yaml" | |
repo=$dir/repo.git | ||
init_repo() { | ||
mkdir "$1" | ||
git init "$1" | ||
git init -b master "$1" | ||
git -C "$1" config user.email "[email protected]" | ||
git -C "$1" config user.name test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ cp t.yaml "$bob/recipes" | |
# Directory to play in | ||
work=$dir/_work | ||
mkdir "$work" | ||
git init "$work" | ||
git init -b master "$work" | ||
git -C "$work" config user.email "[email protected]" | ||
git -C "$work" config user.name test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ cleanup | |
# Prepare git repositories | ||
|
||
pushd "$git_submod" | ||
git init . | ||
git init -b master . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo sub > sub.txt | ||
|
@@ -23,15 +23,15 @@ git commit -m import | |
popd | ||
|
||
pushd "$git_dir1" | ||
git init . | ||
git init -b master . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo "hello world" > test.txt | ||
git add test.txt | ||
git commit -m "initial commit" | ||
git tag -a -m "Tag0" tag0 | ||
d1_c0=$(git rev-parse HEAD) | ||
git submodule add "$git_submod" submod | ||
git -c protocol.file.allow=always submodule add "$git_submod" submod | ||
git commit -m "first commit" | ||
git tag -a -m "First Tag" tag1 | ||
git checkout -b foobar | ||
|
@@ -43,7 +43,7 @@ d1_c2=$(git rev-parse HEAD) | |
popd | ||
|
||
pushd "$git_dir2" | ||
git init . | ||
git init -b master . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo "hello bob" > bob.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ cp recipe1.yaml "$bob/recipes/t.yaml" | |
# Directory to play in | ||
work=$dir/work | ||
mkdir "$work" | ||
git init "$work" | ||
git init -b master "$work" | ||
git -C "$work" config user.email "[email protected]" | ||
git -C "$work" config user.name test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ cleanup | |
# Prepare git repositories | ||
|
||
pushd "$git_dir1" | ||
git init . | ||
git init -b master . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo "commit-1" > git1.txt | ||
|
@@ -25,7 +25,7 @@ git tag -a -m "Second Tag" tag2 | |
popd | ||
|
||
pushd "$git_dir2" | ||
git init . | ||
git init -b master . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo "commit-1" > git2.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ trap 'rm -rf "${gitDir}" "${urlDir}" "${svnDir}"' EXIT | |
|
||
# init a git - repo | ||
pushd ${gitDir} | ||
git init | ||
git init -b master | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo "git" > test.dat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,8 +226,10 @@ def setUpClass(cls): | |
with tempfile.TemporaryDirectory() as tmp: | ||
cmds = "\n".join([ | ||
'git init .', | ||
'git config --local protocol.file.allow always', | ||
'git config user.email "[email protected]"', | ||
'git config user.name test', | ||
'git checkout -b master', | ||
'echo "hello world" > test.txt', | ||
'git add test.txt', | ||
'git commit -m "first commit"', | ||
|
@@ -416,6 +418,7 @@ def setUpClass(cls): | |
git init . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
git checkout -b master | ||
for i in $(seq 3) ; do | ||
echo "#$i" > test.txt | ||
|
@@ -520,6 +523,7 @@ def setUp(self): | |
git init . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
git checkout -b master | ||
echo subsub > subsub.txt | ||
git add subsub.txt | ||
git commit -m import | ||
|
@@ -530,10 +534,12 @@ def setUp(self): | |
git init . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
git checkout -b master | ||
echo 1 > test.txt | ||
git add test.txt | ||
mkdir -p some/deep | ||
git submodule add --name whatever ../subsub1 some/deep/path | ||
git -c protocol.file.allow=always \ | ||
submodule add --name whatever ../subsub1 some/deep/path | ||
git commit -m "commit 1" | ||
echo 2 > test.txt | ||
git commit -a -m "commit 2" | ||
|
@@ -542,11 +548,13 @@ def setUp(self): | |
# setup main module and add first submodule | ||
cd main | ||
git init . | ||
git checkout -b master | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo 1 > test.txt | ||
git add test.txt | ||
git submodule add ../sub1 | ||
git -c protocol.file.allow=always \ | ||
submodule add ../sub1 | ||
git commit -m "commit 1" | ||
git tag -a -m 'Tag 1' tag1 | ||
cd .. | ||
|
@@ -619,6 +627,7 @@ def addSub2(self): | |
cmds = """\ | ||
cd sub2 | ||
git init . | ||
git checkout -b master | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo 2 > test.txt | ||
|
@@ -627,7 +636,7 @@ def addSub2(self): | |
cd .. | ||
cd main | ||
git submodule add ../sub2 | ||
git -c protocol.file.allow=always submodule add ../sub2 | ||
git commit -m "commit 2" | ||
cd .. | ||
""" | ||
|
@@ -882,6 +891,7 @@ def setUp(self): | |
|
||
cmds = """\ | ||
git init . | ||
git checkout -b master | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
echo -n "hello world" > test.txt | ||
|
@@ -1023,6 +1033,7 @@ def setUp(self): | |
git init . | ||
git config user.email "[email protected]" | ||
git config user.name test | ||
git checkout -b master | ||
echo -n "hello world" > test.txt | ||
git add test.txt | ||
git commit -m "first commit" | ||
|
Oops, something went wrong.