diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-26 00:12:31 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-26 00:12:31 +0800 |
commit | 29fe44da50e5ea9ff0b8522f3ee45ee815ff1927 (patch) | |
tree | aa13cb09fc688c324c7f72941feb6a2037e64950 /models/repo.go | |
parent | 1284d99fd27e3de6632b9c7ecc55fd4b10198d41 (diff) | |
download | gitea-29fe44da50e5ea9ff0b8522f3ee45ee815ff1927.tar.gz gitea-29fe44da50e5ea9ff0b8522f3ee45ee815ff1927.zip |
bug fixed
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 9e469952e3..0dfcbac1c7 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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 } |