1
0
Fork 0
forked from forgejo/forgejo

Mirror updates

This commit is contained in:
Unknown 2014-04-19 06:00:08 -04:00
parent b32e223db5
commit eda3f8b3b3
7 changed files with 34 additions and 22 deletions

View file

@ -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
}