mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-29 08:07:42 +01:00
Fixes issue #283
Delete old temp local copy before we create a new temp local copy
This commit is contained in:
parent
7b5b5178e1
commit
cbcb4361d5
1 changed files with 3 additions and 0 deletions
|
@ -429,6 +429,9 @@ func (pr *PullRequest) testPatch() (err error) {
|
||||||
|
|
||||||
log.Trace("PullRequest[%d].testPatch (patchPath): %s", pr.ID, patchPath)
|
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 {
|
if err := pr.BaseRepo.UpdateLocalCopyBranch(pr.BaseBranch); err != nil {
|
||||||
return fmt.Errorf("UpdateLocalCopy: %v", err)
|
return fmt.Errorf("UpdateLocalCopy: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue