summaryrefslogtreecommitdiffstats
path: root/services/pull/temp_repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull/temp_repo.go')
-rw-r--r--services/pull/temp_repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/pull/temp_repo.go b/services/pull/temp_repo.go
index 54d09c8158..e30dba7add 100644
--- a/services/pull/temp_repo.go
+++ b/services/pull/temp_repo.go
@@ -152,7 +152,7 @@ func createTemporaryRepo(pr *models.PullRequest) (string, error) {
if err := models.RemoveTemporaryPath(tmpBasePath); err != nil {
log.Error("CreateTempRepo: RemoveTemporaryPath: %s", err)
}
- if !git.IsBranchExist(pr.HeadRepo.RepoPath(), pr.HeadBranch) {
+ if !git.IsBranchExist(git.DefaultContext, pr.HeadRepo.RepoPath(), pr.HeadBranch) {
return "", models.ErrBranchDoesNotExist{
BranchName: pr.HeadBranch,
}