@@ -136,7 +136,7 @@ func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir,
136136 }
137137
138138 // README
139- data , err := options .GetRepoInitFile ( "readme" , opts .Readme )
139+ data , err := options .Readme ( opts .Readme )
140140 if err != nil {
141141 return fmt .Errorf ("GetRepoInitFile[%s]: %w" , opts .Readme , err )
142142 }
@@ -164,7 +164,7 @@ func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir,
164164 var buf bytes.Buffer
165165 names := strings .Split (opts .Gitignores , "," )
166166 for _ , name := range names {
167- data , err = options .GetRepoInitFile ( "gitignore" , name )
167+ data , err = options .Gitignore ( name )
168168 if err != nil {
169169 return fmt .Errorf ("GetRepoInitFile[%s]: %w" , name , err )
170170 }
@@ -182,7 +182,7 @@ func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir,
182182
183183 // LICENSE
184184 if len (opts .License ) > 0 {
185- data , err = options .GetRepoInitFile ( "license" , opts .License )
185+ data , err = options .License ( opts .License )
186186 if err != nil {
187187 return fmt .Errorf ("GetRepoInitFile[%s]: %w" , opts .License , err )
188188 }
0 commit comments