lint test update
This commit is contained in:
parent
66a69bdec5
commit
e5ebbcb66a
1 changed files with 3 additions and 1 deletions
|
|
@ -121,7 +121,9 @@ func setGitDir(t *testing.T, dir string) {
|
|||
old_GIT_DIR := os.Getenv("GIT_DIR")
|
||||
os.Setenv("GIT_DIR", dir)
|
||||
t.Cleanup(func() {
|
||||
_ = git.UnsetRemoteResolution("upstream")
|
||||
if err := git.UnsetRemoteResolution("upstream"); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
os.Setenv("GIT_DIR", old_GIT_DIR)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue