From d66393002383cbaa2a4a73f7c5bb9dd24d05f4db Mon Sep 17 00:00:00 2001 From: yasuokav Date: Fri, 25 Jan 2019 16:54:09 +0900 Subject: [PATCH] fix delete correct temp directory (#5839) --- models/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/pull.go b/models/pull.go index b2cf4b1f440..d84be139c96 100644 --- a/models/pull.go +++ b/models/pull.go @@ -396,7 +396,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,