Fix delete correct temp directory (#5840)

This commit is contained in:
yasuokav 2019-01-25 16:33:15 +09:00 committed by techknowlogick
parent 8a9f5b3b50
commit 28d9305ea3

View File

@ -366,7 +366,7 @@ func (pr *PullRequest) Merge(doer *User, baseGitRepo *git.Repository, mergeStyle
return fmt.Errorf("Failed to create dir %s: %v", tmpBasePath, err)
}
defer os.RemoveAll(path.Dir(tmpBasePath))
defer os.RemoveAll(tmpBasePath)
var stderr string
if _, stderr, err = process.GetManager().ExecTimeout(5*time.Minute,