diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-19 14:52:08 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-19 14:52:08 +1000 |
commit | 6978785ccfdf6605501e1b36d2a4bc9635a89b99 (patch) | |
tree | 4013a156ebf40b9b51695528415aac4c7368e82a | |
parent | cd9eada0c6b3fdb68519467807bf2c8e6eb521bd (diff) |
add user email and config to test repo generators
-rwxr-xr-x | test/repos/case_insensitive_checkouts.sh | 3 | ||||
-rwxr-xr-x | test/repos/gpg.sh | 3 | ||||
-rwxr-xr-x | test/repos/lots_of_commits.sh | 3 | ||||
-rwxr-xr-x | test/repos/lots_of_diffs.sh | 3 | ||||
-rwxr-xr-x | test/repos/merge_conflict.sh | 3 | ||||
-rwxr-xr-x | test/repos/pre_commit_hook.sh | 3 | ||||
-rwxr-xr-x | test/repos/unicode_characters.sh | 3 |
7 files changed, 21 insertions, 0 deletions
diff --git a/test/repos/case_insensitive_checkouts.sh b/test/repos/case_insensitive_checkouts.sh index 23997a670..1a2b83403 100755 --- a/test/repos/case_insensitive_checkouts.sh +++ b/test/repos/case_insensitive_checkouts.sh @@ -2,6 +2,9 @@ set -ex; rm -rf repo; mkdir repo; cd repo git init +git config user.email "test@example.com" +git config user.name "Lazygit Tester" + touch foo git add foo diff --git a/test/repos/gpg.sh b/test/repos/gpg.sh index 719c6467b..646f785b1 100755 --- a/test/repos/gpg.sh +++ b/test/repos/gpg.sh @@ -2,6 +2,9 @@ set -ex; rm -rf repo; mkdir repo; cd repo git init +git config user.email "test@example.com" +git config user.name "Lazygit Tester" + git config gpg.program $(which gpg) git config user.signingkey E304229F # test key diff --git a/test/repos/lots_of_commits.sh b/test/repos/lots_of_commits.sh index 7c271f751..ad55864c3 100755 --- a/test/repos/lots_of_commits.sh +++ b/test/repos/lots_of_commits.sh @@ -2,6 +2,9 @@ set -ex; rm -rf repo; mkdir repo; cd repo git init +git config user.email "test@example.com" +git config user.name "Lazygit Tester" + i=2 end=100 diff --git a/test/repos/lots_of_diffs.sh b/test/repos/lots_of_diffs.sh index d91734a3a..08c743f35 100755 --- a/test/repos/lots_of_diffs.sh +++ b/test/repos/lots_of_diffs.sh @@ -2,6 +2,9 @@ set -ex; rm -rf repo; mkdir repo; cd repo git init +git config user.email "test@example.com" +git config user.name "Lazygit Tester" + echo "deleted" > deleted_staged echo "deleted_unstaged" > deleted_unstaged diff --git a/test/repos/merge_conflict.sh b/test/repos/merge_conflict.sh index 8ba234203..51e4c1ce6 100755 --- a/test/repos/merge_conflict.sh +++ b/test/repos/merge_conflict.sh @@ -2,6 +2,9 @@ set -ex; rm -rf repo; mkdir repo; cd repo git init +git config user.email "test@example.com" +git config user.name "Lazygit Tester" + function add_spacing { for i in {1..60} diff --git a/test/repos/pre_commit_hook.sh b/test/repos/pre_commit_hook.sh index 1c24bf19f..f1b76b56a 100755 --- a/test/repos/pre_commit_hook.sh +++ b/test/repos/pre_commit_hook.sh @@ -2,6 +2,9 @@ set -ex; rm -rf repo; mkdir repo; cd repo git init +git config user.email "test@example.com" +git config user.name "Lazygit Tester" + cp ../extras/pre-commit .git/hooks/pre-commit chmod +x .git/hooks/pre-commit diff --git a/test/repos/unicode_characters.sh b/test/repos/unicode_characters.sh index 69ac5e622..fc4cddf1b 100755 --- a/test/repos/unicode_characters.sh +++ b/test/repos/unicode_characters.sh @@ -2,6 +2,9 @@ set -ex; rm -rf repo; mkdir repo; cd repo git init +git config user.email "test@example.com" +git config user.name "Lazygit Tester" + # Add some ansi, unicode, zero width joiner caracters cat <<EOT >> charstest.txt |