b0eebaa36b8aef44923936e94855b10736e54965

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

fix: panic on ssh lfs transfer

Diff

 1diff --git a/server/ssh/cmd/git.go b/server/ssh/cmd/git.go
 2index b40b53fa14a0a9b68e49c963b5fb56e12e298652..37a90344075a78f839a3eb3fd3193c4e98b27f14 100644
 3--- a/server/ssh/cmd/git.go
 4+++ b/server/ssh/cmd/git.go
 5@@ -88,7 +88,7 @@ var (
 6 		Subsystem: "git",
 7 		Name:      "lfs_transfer_seconds_total",
 8 		Help:      "The total time spent on git-lfs-transfer requests",
 9-	}, []string{"repo"})
10+	}, []string{"repo", "operation"})
11 
12 	createRepoCounter = promauto.NewCounterVec(prometheus.CounterOpts{
13 		Namespace: "soft_serve",