Skip to content

Commit

Permalink
Fixes issue go-gitea#283
Browse files Browse the repository at this point in the history
Delete old temp local copy before we create a new temp local copy
  • Loading branch information
Bwko committed Dec 8, 2016
1 parent bab737b commit 91b863b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ func (pr *PullRequest) testPatch() (err error) {

log.Trace("PullRequest[%d].testPatch (patchPath): %s", pr.ID, patchPath)

// Delete old temp local copy before we create a new temp local copy
RemoveAllWithNotice("Deleting old local copy", pr.BaseRepo.LocalCopyPath())

if err := pr.BaseRepo.UpdateLocalCopyBranch(pr.BaseBranch); err != nil {
return fmt.Errorf("UpdateLocalCopy: %v", err)
}
Expand Down

0 comments on commit 91b863b

Please sign in to comment.