@@ -121,7 +121,7 @@ func newDeployFiles() *deployFiles {
121121func (d * deployFiles ) Add (p string , f * FileBundle ) {
122122 d .Files [p ] = f
123123 d .Sums [p ] = f .Sum
124- // Remove ":original_sha" part when to save in Hashed (asset management )
124+ // Remove ":original_sha" part when to save in Hashed (large media )
125125 sum := f .Sum
126126 if strings .Contains (sum , ":" ) {
127127 sum = strings .Split (sum , ":" )[0 ]
@@ -167,8 +167,8 @@ func (n *Netlify) DoDeploy(ctx context.Context, options *DeployOptions, deploy *
167167 }
168168 }
169169
170- context .GetLogger (ctx ).Infof ("Getting files info with asset management flag: %v" , deploy .SiteCapabilities .AssetManagement )
171- files , err := walk (options .Dir , options .Observer , deploy .SiteCapabilities .AssetManagement )
170+ context .GetLogger (ctx ).Infof ("Getting files info with large media flag: %v" , deploy .SiteCapabilities .LargeMedia )
171+ files , err := walk (options .Dir , options .Observer , deploy .SiteCapabilities .LargeMedia )
172172 if err != nil {
173173 if options .Observer != nil {
174174 options .Observer .OnFailedWalk ()
@@ -458,7 +458,7 @@ func (n *Netlify) uploadFile(ctx context.Context, d *models.Deploy, f *FileBundl
458458 }
459459}
460460
461- func walk (dir string , observer DeployObserver , useAssetManagement bool ) (* deployFiles , error ) {
461+ func walk (dir string , observer DeployObserver , useLargeMedia bool ) (* deployFiles , error ) {
462462 files := newDeployFiles ()
463463
464464 err := filepath .Walk (dir , func (path string , info os.FileInfo , err error ) error {
@@ -494,13 +494,13 @@ func walk(dir string, observer DeployObserver, useAssetManagement bool) (*deploy
494494 }
495495 file .Sum = hex .EncodeToString (s .Sum (nil ))
496496
497- if useAssetManagement {
497+ if useLargeMedia {
498498 o , err := os .Open (path )
499499 if err != nil {
500500 return err
501501 }
502502 defer o .Close ()
503- originalSha := getAssetManagementSha (o )
503+ originalSha := getLFSSha (o )
504504 if originalSha != "" {
505505 file .Sum += ":" + string (originalSha )
506506 }
@@ -654,7 +654,7 @@ func createHeader(archive *zip.Writer, i os.FileInfo, runtime string) (io.Writer
654654 return archive .Create (i .Name ())
655655}
656656
657- func getAssetManagementSha (file io.Reader ) string {
657+ func getLFSSha (file io.Reader ) string {
658658 // currently this only supports certain type of git lfs pointer files
659659 // version [version]\noid sha256:[oid]\nsize [size]
660660 data := make ([]byte , 150 )
0 commit comments