mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Fix NPE on try to get tag reference via API (#18245)
* fix npe * rm gitRepo from Tag
This commit is contained in:
		@@ -296,7 +296,7 @@ func PushUpdateAddTag(repo *repo_model.Repository, gitRepo *git.Repository, tagN
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("GetTag: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
	commit, err := tag.Commit()
 | 
			
		||||
	commit, err := tag.Commit(gitRepo)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("Commit: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user