@@ -305,7 +305,7 @@ func (repo *Repository) UpdateRepoFile(doer *User, opts UpdateRepoFileOptions) (
305
305
}
306
306
307
307
// Add the object to the index
308
- if err := repo .addObjectToIndex (tmpBasePath , "100666 " , objectHash , opts .NewTreeName ); err != nil {
308
+ if err := repo .addObjectToIndex (tmpBasePath , "100644 " , objectHash , opts .NewTreeName ); err != nil {
309
309
return err
310
310
}
311
311
@@ -418,7 +418,7 @@ func (repo *Repository) GetDiffPreview(branch, treePath, content string) (diff *
418
418
}
419
419
420
420
// Add the object to the index
421
- if err := repo .addObjectToIndex (tmpBasePath , "100666 " , objectHash , treePath ); err != nil {
421
+ if err := repo .addObjectToIndex (tmpBasePath , "100644 " , objectHash , treePath ); err != nil {
422
422
return nil , fmt .Errorf ("GetDiffPreview: %v" , err )
423
423
}
424
424
@@ -704,7 +704,7 @@ func (repo *Repository) UploadRepoFiles(doer *User, opts UploadRepoFileOptions)
704
704
}
705
705
706
706
// Add the object to the index
707
- if err := repo .addObjectToIndex (tmpBasePath , "100666 " , objectHash , path .Join (opts .TreePath , upload .Name )); err != nil {
707
+ if err := repo .addObjectToIndex (tmpBasePath , "100644 " , objectHash , path .Join (opts .TreePath , upload .Name )); err != nil {
708
708
return err
709
709
}
710
710
}
0 commit comments