aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/commit.go
diff options
context:
space:
mode:
authorChristopherHX <christopher.homberger@web.de>2023-04-07 08:42:43 +0200
committerGitHub <noreply@github.com>2023-04-07 14:42:43 +0800
commit17623bba0d62e1954031fadc019c3cd104cb5fb8 (patch)
treeda42e41356aabb92d9fe1668bb2cfde101f65d00 /modules/git/commit.go
parent6148e38b8640f732be41e5cf12b9521e9aa51b17 (diff)
downloadgitea-17623bba0d62e1954031fadc019c3cd104cb5fb8.tar.gz
gitea-17623bba0d62e1954031fadc019c3cd104cb5fb8.zip
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.
Diffstat (limited to 'modules/git/commit.go')
-rw-r--r--modules/git/commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/commit.go b/modules/git/commit.go
index 6e8fcb3e08..610d27c68a 100644
--- a/modules/git/commit.go
+++ b/modules/git/commit.go
@@ -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