]> source.dussan.org Git - gitea.git/commitdiff
API change
authorUnknown <joe2010xtmf@163.com>
Sat, 19 Apr 2014 10:15:47 +0000 (06:15 -0400)
committerUnknown <joe2010xtmf@163.com>
Sat, 19 Apr 2014 10:15:47 +0000 (06:15 -0400)
models/repo.go

index 486720d2700e4473fbda07ddac105bf51fabc705..19fe6e2887dece4b20342d6ebfc49c5d67f5eee2 100644 (file)
@@ -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
                        }