aboutsummaryrefslogtreecommitdiffstats
path: root/commands/select/select_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-12-10 23:19:46 +0100
committerGitHub <noreply@github.com>2018-12-10 23:19:46 +0100
commitc92da552d8caeb6129f6f97146459498ac316387 (patch)
tree12b024669d5b4c188b18bf9598082e8915d65c28 /commands/select/select_test.go
parent63807382d345d93a939c8ffb8bed04fa2a840f66 (diff)
parent8dcd3d21cd5e1bf0312225a0db9506173ea76fc7 (diff)
downloadgit-bug-c92da552d8caeb6129f6f97146459498ac316387.tar.gz
Merge pull request #81 from rafasc/ra/fix-empty-ident-test-failure
tests: configure user ident in repos used by tests
Diffstat (limited to 'commands/select/select_test.go')
-rw-r--r--commands/select/select_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/commands/select/select_test.go b/commands/select/select_test.go
index 79c8cbf0..fe501d76 100644
--- a/commands/select/select_test.go
+++ b/commands/select/select_test.go
@@ -96,6 +96,13 @@ func createRepo() *repository.GitRepo {
log.Fatal(err)
}
+ if err := repo.StoreConfig("user.name", "testuser"); err != nil {
+ log.Fatal("failed to set user.name for test repository: ", err)
+ }
+ if err := repo.StoreConfig("user.email", "testuser@example.com"); err != nil {
+ log.Fatal("failed to set user.email for test repository: ", err)
+ }
+
return repo
}