diff options
Diffstat (limited to 'ssh_utils.go')
-rw-r--r-- | ssh_utils.go | 4 |
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 } |