mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 16:01:32 +01:00 
			
		
		
		
	resolved #155
This commit is contained in:
		
							parent
							
								
									e10096ee2e
								
							
						
					
					
						commit
						163fcec59f
					
				| @ -29,6 +29,12 @@ func Update(refName, oldCommitId, newCommitId, userName, repoName string, userId | ||||
| 	gitUpdate.Dir = f | ||||
| 	gitUpdate.Run() | ||||
| 
 | ||||
| 	isDel := strings.HasPrefix(newCommitId, "0000000") | ||||
| 	if isDel { | ||||
| 		qlog.Info("del rev", refName, "from", userName+"/"+repoName+".git", "by", userId) | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	repo, err := git.OpenRepository(f) | ||||
| 	if err != nil { | ||||
| 		qlog.Fatalf("runUpdate.Open repoId: %v", err) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user