From 2590b0df1fa155c0d97be1fb536f1c2e7cb5ba73 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 1 Apr 2025 22:08:58 +0800 Subject: Change the main separator from : to - Implements: https://todo.sr.ht/~runxiyu/forge/28 --- ssh_utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssh_utils.go') diff --git a/ssh_utils.go b/ssh_utils.go index 6a9a480..54e9cb0 100644 --- a/ssh_utils.go +++ b/ssh_utils.go @@ -35,13 +35,13 @@ func getRepoInfo2(ctx context.Context, sshPath, sshPubkey string) (groupPath []s } } - if segments[0] == ":" { + if segments[0] == "-" { return []string{}, "", 0, "", false, "", "", 0, errIllegalSSHRepoPath } sepIndex = -1 for i, part := range segments { - if part == ":" { + if part == "-" { sepIndex = i break } -- cgit v1.2.3