- os.Setenv("ARVADOS_API_TOKEN", "")
-
- _, err = exec.Command("git", "config",
- "--file", s.tmpWorkdir + "/.git/config",
- "credential.http://" + s.testServer.Addr + "/.helper",
- "!foo(){ echo password=$ARVADOS_API_TOKEN; };foo").Output()
- c.Assert(err, check.Equals, nil)
- _, err = exec.Command("git", "config",
- "--file", s.tmpWorkdir + "/.git/config",
- "credential.http://" + s.testServer.Addr + "/.username",
- "none").Output()
- c.Assert(err, check.Equals, nil)