diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-19 06:00:08 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-19 06:00:08 -0400 |
commit | eda3f8b3b34f15d29bb2e6f1346e15616f508501 (patch) | |
tree | 6c041b6c0450a3e0c3dcd245a8489311fdf2aaa4 /models | |
parent | b32e223db56b270d4dd45aed0c9fd5dd54d0f5f8 (diff) | |
download | gitea-eda3f8b3b34f15d29bb2e6f1346e15616f508501.tar.gz gitea-eda3f8b3b34f15d29bb2e6f1346e15616f508501.zip |
Mirror updates
Diffstat (limited to 'models')
-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 6943d05e0b..486720d270 100644 --- a/models/repo.go +++ b/models/repo.go @@ -413,7 +413,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep // hook/post-update if err := createHookUpdate(filepath.Join(repoPath, "hooks", "update"), - fmt.Sprintf("#!/usr/bin/env bash\n%s update $1 $2 $3\n", + fmt.Sprintf("#!/usr/bin/env %s\n%s update $1 $2 $3\n", base.ScriptType, strings.Replace(appPath, "\\", "/", -1))); err != nil { return err } |