1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

stop overwritting gitconfig

Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Casey Lee 2020-02-20 21:01:12 -05:00
parent 762d3708fc
commit 4009035011

View file

@ -13,7 +13,6 @@ import (
"github.com/stretchr/testify/require"
)
func TestFindGitSlug(t *testing.T) {
assert := assert.New(t)
@ -147,9 +146,11 @@ func TestGitFindRef(t *testing.T) {
}
func gitConfig() {
if os.Getenv("GITHUB_ACTIONS") == "true" {
_ = gitCmd("config", "--global", "user.email", "test@test.com")
_ = gitCmd("config", "--global", "user.name", "Unit Test")
}
}
func gitCmd(args ...string) error {
cmd := exec.Command("git", args...)