Преглед на файлове

Fixes issue #283

Delete old temp local copy before we create a new temp local copy
tags/v1.0.0
Bwko преди 7 години
родител
ревизия
cbcb4361d5
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3
    0
      models/pull.go

+ 3
- 0
models/pull.go Целия файл

@@ -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)
}

Loading…
Отказ
Запис