summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-19 06:15:47 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-19 06:15:47 -0400
commit0e41726ece2f7e5efcadd0069190d13b3e8be07c (patch)
treeec8763ddb3738291f464091e7c1317ba95bf8108 /models
parenteda3f8b3b34f15d29bb2e6f1346e15616f508501 (diff)
downloadgitea-0e41726ece2f7e5efcadd0069190d13b3e8be07c.tar.gz
gitea-0e41726ece2f7e5efcadd0069190d13b3e8be07c.zip
API change
Diffstat (limited to 'models')
-rw-r--r--models/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index 486720d270..19fe6e2887 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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
}