Skip to content

Commit df12cc1

Browse files
committed
Fix ssh clone with error format
1 parent 55f1fcf commit df12cc1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/serv.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,7 @@ func runServ(c *cli.Context) error {
189189
}
190190

191191
verb := words[0]
192-
repoPath := words[1]
193-
if repoPath[0] == '/' {
194-
repoPath = repoPath[1:]
195-
}
192+
repoPath := strings.TrimPrefix(words[1], "/")
196193

197194
var lfsVerb string
198195
if verb == lfsAuthenticateVerb {

0 commit comments

Comments
 (0)