summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-26 00:12:31 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-26 00:12:31 +0800
commit29fe44da50e5ea9ff0b8522f3ee45ee815ff1927 (patch)
treeaa13cb09fc688c324c7f72941feb6a2037e64950 /models/repo.go
parent1284d99fd27e3de6632b9c7ecc55fd4b10198d41 (diff)
downloadgitea-29fe44da50e5ea9ff0b8522f3ee45ee815ff1927.tar.gz
gitea-29fe44da50e5ea9ff0b8522f3ee45ee815ff1927.zip
bug fixed
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
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
}