aboutsummaryrefslogtreecommitdiffstats
path: root/clients
diff options
context:
space:
mode:
Diffstat (limited to 'clients')
-rw-r--r--clients/ssh/git_upload_pack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/ssh/git_upload_pack.go b/clients/ssh/git_upload_pack.go
index e172f1f..d53dc63 100644
--- a/clients/ssh/git_upload_pack.go
+++ b/clients/ssh/git_upload_pack.go
@@ -309,7 +309,7 @@ func (f *fetchSession) Close() (err error) {
func (s *GitUploadPackService) getCommand() string {
directory := s.endpoint.Path
- directory = directory[1:len(directory)]
+ directory = directory[1:]
return fmt.Sprintf("git-upload-pack '%s'", directory)
}