6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-10 18:24:15 +00:00

Enable accessing config from gitconfig file or env variables

This commit is contained in:
Grzegorz Dlugoszewski
2020-05-29 21:19:55 +02:00
parent b72f984512
commit 1798816b6a
6 changed files with 270 additions and 6 deletions

View File

@@ -14,6 +14,11 @@ import (
"github.com/pkg/errors"
)
const (
testUser = "Test User"
testEmail = "testuser@example.com"
)
func newRepoEmpty(t *testing.T) *Repo {
dir := newTempDir(t)
@@ -162,8 +167,8 @@ func (r *Repo) newCommit(t *testing.T, msg string) {
opts := &git.CommitOptions{
Author: &object.Signature{
Name: "Some Guy",
Email: "someguy@example.com",
Name: testUser,
Email: testEmail,
When: time.Date(2000, 01, 01, 16, 00, 00, 0, time.UTC),
},
}