@@ -120,14 +120,14 @@ func LFSLocks(ctx *context.Context) {
120
120
Shared : true ,
121
121
}); err != nil {
122
122
log .Error ("Failed to clone repository: %s (%v)" , ctx .Repo .Repository .FullName (), err )
123
- ctx .ServerError ("LFSLocks" , fmt .Errorf ("Failed to clone repository: %s (%v)" , ctx .Repo .Repository .FullName (), err ))
123
+ ctx .ServerError ("LFSLocks" , fmt .Errorf ("failed to clone repository: %s (%v)" , ctx .Repo .Repository .FullName (), err ))
124
124
return
125
125
}
126
126
127
127
gitRepo , err := git .OpenRepositoryCtx (ctx , tmpBasePath )
128
128
if err != nil {
129
129
log .Error ("Unable to open temporary repository: %s (%v)" , tmpBasePath , err )
130
- ctx .ServerError ("LFSLocks" , fmt .Errorf ("Failed to open new temporary repository in: %s %v" , tmpBasePath , err ))
130
+ ctx .ServerError ("LFSLocks" , fmt .Errorf ("failed to open new temporary repository in: %s %v" , tmpBasePath , err ))
131
131
return
132
132
}
133
133
defer gitRepo .Close ()
@@ -140,7 +140,7 @@ func LFSLocks(ctx *context.Context) {
140
140
141
141
if err := gitRepo .ReadTreeToIndex (ctx .Repo .Repository .DefaultBranch ); err != nil {
142
142
log .Error ("Unable to read the default branch to the index: %s (%v)" , ctx .Repo .Repository .DefaultBranch , err )
143
- ctx .ServerError ("LFSLocks" , fmt .Errorf ("Unable to read the default branch to the index: %s (%v)" , ctx .Repo .Repository .DefaultBranch , err ))
143
+ ctx .ServerError ("LFSLocks" , fmt .Errorf ("unable to read the default branch to the index: %s (%v)" , ctx .Repo .Repository .DefaultBranch , err ))
144
144
return
145
145
}
146
146
@@ -525,14 +525,14 @@ func LFSAutoAssociate(ctx *context.Context) {
525
525
for i , oid := range oids {
526
526
idx := strings .IndexRune (oid , ' ' )
527
527
if idx < 0 || idx + 1 > len (oid ) {
528
- ctx .ServerError ("LFSAutoAssociate" , fmt .Errorf ("Illegal oid input: %s" , oid ))
528
+ ctx .ServerError ("LFSAutoAssociate" , fmt .Errorf ("illegal oid input: %s" , oid ))
529
529
return
530
530
}
531
531
var err error
532
532
metas [i ] = & models.LFSMetaObject {}
533
533
metas [i ].Size , err = strconv .ParseInt (oid [idx + 1 :], 10 , 64 )
534
534
if err != nil {
535
- ctx .ServerError ("LFSAutoAssociate" , fmt .Errorf ("Illegal oid input: %s %v" , oid , err ))
535
+ ctx .ServerError ("LFSAutoAssociate" , fmt .Errorf ("illegal oid input: %s %v" , oid , err ))
536
536
return
537
537
}
538
538
metas [i ].Oid = oid [:idx ]
0 commit comments