File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ func runServ(c *cli.Context) error {
123
123
fail ("Unknown git command" , "LFS authentication request over SSH denied, LFS support is disabled" )
124
124
}
125
125
126
- if strings .Contains (args , " " ) {
127
- argsSplit := strings . SplitN ( args , " " , 2 )
126
+ argsSplit := strings .Split (args , " " )
127
+ if len ( argsSplit ) >= 2 {
128
128
args = strings .TrimSpace (argsSplit [0 ])
129
129
lfsVerb = strings .TrimSpace (argsSplit [1 ])
130
130
}
@@ -179,8 +179,10 @@ func runServ(c *cli.Context) error {
179
179
if verb == lfsAuthenticateVerb {
180
180
if lfsVerb == "upload" {
181
181
requestedMode = models .AccessModeWrite
182
- } else {
182
+ } else if lfsVerb == "download" {
183
183
requestedMode = models .AccessModeRead
184
+ } else {
185
+ fail ("Unknown LFS verb" , "Unkown lfs verb %s" , lfsVerb )
184
186
}
185
187
}
186
188
You can’t perform that action at this time.
0 commit comments