Repository navigation
bl-game template: ignore Assets/Cooked in any project folder - #37
Merged
Merged
Conversation
The .gitignore pattern Assets/Cooked/ has a slash, so Git anchors it to the repository's root, and it never matched a project's src/cs/MyGame/Assets/Cooked/: Ageborn committed its cooked shaders. **/Assets/Cooked/ matches it anywhere. test.sh now checks that the generated repository ignores its cooked assets, and the Assetyard README says to use **/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The template's
.gitignorehadAssets/Cooked/. A pattern with a slash in it is anchored to the.gitignore's folder, the repository's root, so it never matched a game'ssrc/cs/MyGame/Assets/Cooked/. A game made from the template committed its cooked shaders because of this.shared/.gitignore:**/Assets/Cooked/, which matches in any folder, with a comment on why**/is needed.test.sh: after the template's game cooks its asset, it runsgit initandgit check-ignoreon the cooked file, so a pattern that doesn't match fails the test.**/Assets/Cooked/and why. It saidAssets/Cooked/, the same mistake.Checked:
test.shpasses locally on macOS with the new check. In a repository made from the template,git check-ignoredoesn't match with the old pattern and does with the new one.Repositories already made from the template need the same one-line change in their
.gitignore.