]> source.dussan.org Git - gitea.git/commitdiff
bug fixed
authorLunny Xiao <xiaolunwen@gmail.com>
Tue, 25 Mar 2014 16:12:31 +0000 (00:12 +0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Tue, 25 Mar 2014 16:12:31 +0000 (00:12 +0800)
models/repo.go

index 9e469952e30d123ea712df9af9ccbd563bf61a9f..0dfcbac1c768bf80042258c17aacde5e21c75074 100644 (file)
@@ -268,7 +268,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
        }
        defer pu.Close()
        // TODO: Windows .bat
-       if _, err = pu.WriteString(fmt.Sprintf("#!/usr/bin/env bash\n%s update ARGV[0] ARGV[1] ARGV[2]\n", appPath)); err != nil {
+       if _, err = pu.WriteString(fmt.Sprintf("#!/usr/bin/env bash\n%s update $1 $2 $3\n", appPath)); err != nil {
                return err
        }