Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 63c55aa

Browse files
committed
add one more git branch not found pattern
1 parent e68de59 commit 63c55aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/worker/lib/fetchers/git.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ func (gf Git) clone(ctx context.Context, sg *result.StepGroup, repo *Repo, exec
3636
out = cloneRes.StdOut + cloneRes.StdErr
3737
}
3838
noBranchOrRepo := strings.Contains(out, "could not read Username for") ||
39-
strings.Contains(out, "Could not find remote branch")
39+
strings.Contains(out, "Could not find remote branch") ||
40+
(strings.Contains(out, "Remote branch") && strings.Contains(out, "not found in upstream"))
4041
if noBranchOrRepo {
4142
return ErrNoBranchOrRepo
4243
}

0 commit comments

Comments
 (0)