Skip to content

Commit

Permalink
chore: add stderr check for does not exist in git
Browse files Browse the repository at this point in the history
  • Loading branch information
Eckhardt-D committed Jun 21, 2024
1 parent f270e22 commit d50125c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/install/repository.zig
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ pub const Repository = extern struct {
.Exited => |sig| if (sig == 0) return result.stdout else if (
// remote: The page could not be found <-- for non git
// remote: Repository not found. <-- for git
strings.containsComptime(result.stderr, "remote:") and strings.containsComptime(result.stderr, "not") and strings.containsComptime(result.stderr, "found")) {
// remote: fatal repository '<url>' does not exist <-- for git
(strings.containsComptime(result.stderr, "remote:") and strings.containsComptime(result.stderr, "not") and strings.containsComptime(result.stderr, "found")) or strings.containsComptime(result.stderr, "does not exist")) {
return error.RepositoryNotFound;
},
else => {},
Expand Down

0 comments on commit d50125c

Please sign in to comment.