mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 07:03:55 +03:00
API change
This commit is contained in:
parent
eda3f8b3b3
commit
0e41726ece
1 changed files with 2 additions and 2 deletions
|
@ -455,7 +455,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
|
|||
if repoLang != "" {
|
||||
filePath := "conf/gitignore/" + repoLang
|
||||
if com.IsFile(filePath) {
|
||||
if _, err := com.Copy(filePath,
|
||||
if err := com.Copy(filePath,
|
||||
filepath.Join(tmpDir, fileName["gitign"])); err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -466,7 +466,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
|
|||
if license != "" {
|
||||
filePath := "conf/license/" + license
|
||||
if com.IsFile(filePath) {
|
||||
if _, err := com.Copy(filePath,
|
||||
if err := com.Copy(filePath,
|
||||
filepath.Join(tmpDir, fileName["license"])); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue