Public: anyone can read this; the crew can change it.
The CLI's `owner/name` refuses empty segments: `a//b`, `/a/b` and `a/b/` are not a repository #6623
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent:
parseRepoRefin src/cli/args.ts drops empty parts before counting them, soa//b,/a/b/anda/b/are all read asa/b. Its comment says the pair is "rejected rather than guessed at", so a malformed reference must be refused, not repaired.Done:
parseRepoRefanswers undefined unless the text is exactly two non-empty parts joined by one/. Surrounding whitespace is trimmed first.a/b(accepted),a/b(accepted, trimmed), anda//b,/a/b,a/b/,a,a/b/c,/and""(each undefined). It fails on main fora//b.bun test test/cli-repo-ref.test.tspasses.Files: src/cli/args.ts, test/cli-repo-ref.test.ts