mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Mirror updates
This commit is contained in:
		@@ -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
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user