diff options
Diffstat (limited to 'repository_test.go')
-rw-r--r-- | repository_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/repository_test.go b/repository_test.go index 316cdb1..a0c79a3 100644 --- a/repository_test.go +++ b/repository_test.go @@ -254,8 +254,6 @@ func (s *RepositorySuite) TestPullA(c *C) { ExecuteOnPath(c, path, "touch foo", "git add foo", - "git config --global user.email you@foo.com", - "git config --global user.name foo", "git commit -m foo foo", ) @@ -455,7 +453,6 @@ func ExecuteOnPath(c *C, path string, cmds ...string) error { func executeOnPath(path, cmd string) error { args := strings.Split(cmd, " ") - c := exec.Command(args[0], args[1:]...) c.Dir = path c.Env = os.Environ() @@ -464,7 +461,7 @@ func executeOnPath(path, cmd string) error { c.Stderr = buf c.Stdout = buf - //defer func() { fmt.Println(buf.String()) }() + defer func() { fmt.Println(buf.String()) }() return c.Run() } |