Merge pull request #207 from bittracker/issue-144
Fixes #144 - Blank Git user config for tests
Jonas Haag authored 7 years ago
GitHub committed 7 years ago
0 | 0 |
#!/bin/bash -e
|
|
1 |
|
|
2 |
# This should prevent this script to load the local git user config:
|
|
3 |
# (HOME overwrite)
|
|
4 |
HOME="."
|
|
5 |
|
1 | 6 |
git init
|
2 | 7 |
|
3 | 8 |
# Create binary
|
|
12 | 17 |
yes | head -n 102400 > toolarge
|
13 | 18 |
git add toolarge
|
14 | 19 |
|
15 | |
git commit --no-gpg-sign -am first
|
|
20 |
git commit -am first
|
0 | 0 |
#!/bin/bash -e
|
|
1 |
|
|
2 |
# This should prevent this script to load the local git user config:
|
|
3 |
# (HOME overwrite)
|
|
4 |
HOME="."
|
|
5 |
|
1 | 6 |
git init
|
2 | 7 |
|
3 | 8 |
echo 1 > test
|
4 | 9 |
echo -n 2 >> test
|
5 | 10 |
git add test
|
6 | |
git commit --no-gpg-sign -m old
|
|
11 |
git commit -m old
|
7 | 12 |
|
8 | 13 |
echo 1 > test
|
9 | 14 |
echo 2 >> test
|
10 | 15 |
git add test
|
11 | |
git commit --no-gpg-sign -m new
|
|
16 |
git commit -m new
|
0 | 0 |
#!/bin/bash -e
|
|
1 |
|
|
2 |
# This should prevent this script to load the local git user config:
|
|
3 |
# (HOME overwrite)
|
|
4 |
HOME="."
|
|
5 |
|
1 | 6 |
git init
|
2 | 7 |
|
3 | 8 |
echo "int a;" > test.c
|
4 | 9 |
echo "function test() {}" > test.js
|
5 | 10 |
git add test.c
|
6 | 11 |
git add test.js
|
7 | |
git commit --no-gpg-sign -m "Add some code"
|
|
12 |
git commit -m "Add some code"
|
8 | 13 |
|
9 | |
git commit --no-gpg-sign --allow-empty -m "Empty commit 1"
|
|
14 |
git commit --allow-empty -m "Empty commit 1"
|
10 | 15 |
git tag tag1
|
11 | 16 |
|
12 | |
git commit --no-gpg-sign --allow-empty -m "Empty commit 2"
|
|
17 |
git commit --allow-empty -m "Empty commit 2"
|