Skip to content

Commit 4633f65

Browse files
committed
fix lfsContentStore
1 parent 8dda04b commit 4633f65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/repository/files/update.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,11 @@ func ChangeRepoFiles(ctx context.Context, repo *repo_model.Repository, doer *use
243243
}
244244
}
245245

246+
lfsContentStore := lfs.NewContentStore()
246247
for _, file := range opts.Files {
247248
switch file.Operation {
248249
case "create", "update", "rename":
249-
if err = CreateUpdateRenameFile(ctx, t, file, lfs.NewContentStore(), repo.ID, hasOldBranch); err != nil {
250+
if err = CreateUpdateRenameFile(ctx, t, file, lfsContentStore, repo.ID, hasOldBranch); err != nil {
250251
return nil, err
251252
}
252253
case "delete":

0 commit comments

Comments
 (0)