mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Remove Repository.getFilesChanged to fix Actions paths and paths-ignore filter (#23920)
				
					
				
			Remove the misbehaving function and call Repository.GetFilesChangedBetween instead. Fixes #23919 --- ~~_TODO_ test this~~ `Repository.getFilesChanged` seems to be only used by Gitea Actions, but a similar function already exists **Update** I tested this change and the issue is gone.
This commit is contained in:
		| @@ -291,7 +291,7 @@ func (c *Commit) SearchCommits(opts SearchCommitsOptions) ([]*Commit, error) { | ||||
|  | ||||
| // GetFilesChangedSinceCommit get all changed file names between pastCommit to current revision | ||||
| func (c *Commit) GetFilesChangedSinceCommit(pastCommit string) ([]string, error) { | ||||
| 	return c.repo.getFilesChanged(pastCommit, c.ID.String()) | ||||
| 	return c.repo.GetFilesChangedBetween(pastCommit, c.ID.String()) | ||||
| } | ||||
|  | ||||
| // FileChangedSinceCommit Returns true if the file given has changed since the the past commit | ||||
|   | ||||
		Reference in New Issue
	
	Block a user