Skip to content

Conversation

@HannesWell
Copy link
Member

@HannesWell HannesWell commented Sep 28, 2024

Stage the relevant kind of files in isolation and don't fail if that kind of file does not exist at all in the repository.

Otherwise the entire step fails if the repo for example doesn't contain a feature.xml, because the previous 'git add' command then fails with:
fatal: pathspec '*/feature.xml' did not match any files

This became relevant for example in eclipse-jdt/eclipse.jdt.debug#516

Follow-up on #2352.

Stage the relevant kind of files in isolation and don't fail if that
kind of file does not exist at all in the repository.

Otherwise the entire step fails if the repo for example doesn't contain
a feature.xml, because the previous 'git add' command then fails with:

fatal: pathspec '*/feature.xml' did not match any files
@HannesWell
Copy link
Member Author

Tested with eclipse-jdt/eclipse.jdt.debug#516 and it worked as expected.

@HannesWell HannesWell merged commit 6b88971 into eclipse-platform:master Sep 28, 2024
@HannesWell HannesWell deleted the robust-file-statging-in-version-increment branch September 28, 2024 13:28
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.

1 participant