Skip to content

fix(git-data): pass cwd to git diff subprocess for out-of-source runs - #1599

Merged
firecow merged 1 commit into
firecow:masterfrom
superewald:fix-git-diff-tracking-cwd
Jul 28, 2025
Merged

fix(git-data): pass cwd to git diff subprocess for out-of-source runs#1599
firecow merged 1 commit into
firecow:masterfrom
superewald:fix-git-diff-tracking-cwd

Conversation

@superewald

Copy link
Copy Markdown
Contributor

Running gitlab-ci-local for a different worktree (eg gitlab-ci-local --cwd=../project-b) would throw an error because the changedFiles function executes the git diff subprocess in the current cwd.

This commit fixes it by passing the correct cwd to the subprocess.

@superewald
superewald marked this pull request as draft June 30, 2025 15:11
@superewald
superewald marked this pull request as ready for review June 30, 2025 16:16
@firecow
firecow merged commit 285cfe6 into firecow:master Jul 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants