aboutsummaryrefslogtreecommitdiff
path: root/ssh_utils.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-01 22:08:58 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-01 22:09:10 +0800
commit2590b0df1fa155c0d97be1fb536f1c2e7cb5ba73 (patch)
treecd7db2968e997af2098e3ec83c6147e056c50479 /ssh_utils.go
parentLMTP: Patch handling stub (diff)
downloadforge-2590b0df1fa155c0d97be1fb536f1c2e7cb5ba73.tar.gz
forge-2590b0df1fa155c0d97be1fb536f1c2e7cb5ba73.tar.zst
forge-2590b0df1fa155c0d97be1fb536f1c2e7cb5ba73.zip
Change the main separator from : to -
Implements: https://todo.sr.ht/~runxiyu/forge/28
Diffstat (limited to '')
-rw-r--r--ssh_utils.go4
1 files changed, 2 insertions, 2 deletions
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
}