Skip to content

Commit

Permalink
Fixes issue #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 authored and bkcsoft committed Dec 9, 2016
1 parent 7b5b517 commit cbcb436
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 cbcb436

Please sign in to comment.