mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 18:12:20 +01:00 
			
		
		
		
	#876: Update hooks is missing for forked repository
This commit is contained in:
		
							parent
							
								
									48bb639371
								
							
						
					
					
						commit
						b668fc7aad
					
				| @ -1377,5 +1377,9 @@ func ForkRepository(u *User, oldRepo *Repository, name, desc string) (_ *Reposit | ||||
| 		return nil, fmt.Errorf("git update-server-info: %v", err) | ||||
| 	} | ||||
| 
 | ||||
| 	if err = createUpdateHook(repoPath); err != nil { | ||||
| 		return nil, fmt.Errorf("createUpdateHook: %v", err) | ||||
| 	} | ||||
| 
 | ||||
| 	return repo, sess.Commit() | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user