Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Apr 27, 2014
1 parent 89b68bd commit 1badb2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,11 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep
return err
}

rp := strings.NewReplacer("\\", "/", " ", "\\ ")
// hook/post-update
if err := createHookUpdate(filepath.Join(repoPath, "hooks", "update"),
fmt.Sprintf("#!/usr/bin/env %s\n%s update $1 $2 $3\n", base.ScriptType,
strings.Replace(appPath, "\\", "/", -1))); err != nil {
rp.Replace(appPath))); err != nil {
return err
}

Expand Down

0 comments on commit 1badb2b

Please sign in to comment.