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

Commit

Permalink
add one more git branch not found pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jirfag committed Jul 8, 2019
1 parent e68de59 commit 63c55aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/worker/lib/fetchers/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func (gf Git) clone(ctx context.Context, sg *result.StepGroup, repo *Repo, exec
out = cloneRes.StdOut + cloneRes.StdErr
}
noBranchOrRepo := strings.Contains(out, "could not read Username for") ||
strings.Contains(out, "Could not find remote branch")
strings.Contains(out, "Could not find remote branch") ||
(strings.Contains(out, "Remote branch") && strings.Contains(out, "not found in upstream"))
if noBranchOrRepo {
return ErrNoBranchOrRepo
}
Expand Down

0 comments on commit 63c55aa

Please sign in to comment.