Skip to content

Commit

Permalink
Fix delete correct temp directory (#5840)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuokav authored and techknowlogick committed Jan 25, 2019
1 parent 8a9f5b3 commit 28d9305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 28d9305

Please sign in to comment.