-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Substitute variables in path names of template repos too #25294
Merged
jolheiser
merged 15 commits into
go-gitea:main
from
AllSpiceIO:kd/subst-repo_template_path_var
Jun 20, 2023
Merged
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
75ffae4
Substitute paths in repo templates
kdumontnu 3cdaf8b
Add integration test
kdumontnu 1d4416d
Use AppUrl in tests
kdumontnu c1d7d8e
Merge remote-tracking branch 'upstream/main' into kd/subst-repo_templ…
kdumontnu 9228581
Improve filename escaping
kdumontnu 7ea605d
Add documentation for sanitization
kdumontnu 6f5a5ac
Merge branch 'main' into kd/subst-repo_template_path_var
kdumontnu 580fc92
Merge branch 'main' into kd/subst-repo_template_path_var
kdumontnu 7afe120
Add . to filename escape
kdumontnu dfea4f8
Merge branch 'main' into kd/subst-repo_template_path_var
kdumontnu 3b8fe94
Fix substituting directories
kdumontnu 008bc39
Review recommendations
kdumontnu 048073c
Merge branch 'main' into kd/subst-repo_template_path_var
kdumontnu d7a1cb7
Merge branch 'main' into kd/subst-repo_template_path_var
kdumontnu 379d8b1
Merge branch 'main' into kd/subst-repo_template_path_var
kdumontnu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
2 changes: 2 additions & 0 deletions
2
...-repositories-meta/user27/template1.git/objects/2a/83b349fa234131fc5db6f2a0498d3f4d3d6038
This file contains 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
Binary file added
BIN
+192 Bytes
...-repositories-meta/user27/template1.git/objects/3d/0bc64f2521cfc7ffce6c175c1c846c88eb6df7
Binary file not shown.
Binary file added
BIN
+53 Bytes
...-repositories-meta/user27/template1.git/objects/83/77b2196e99ac8635aae79df3db76959ccd1094
Binary file not shown.
Binary file added
BIN
+28 Bytes
...-repositories-meta/user27/template1.git/objects/99/45b93bcb5b70af06e0322bd2caa6180680991f
Binary file not shown.
Binary file added
BIN
+106 Bytes
...-repositories-meta/user27/template1.git/objects/af/f5b10402b4e0479d1e76bc41a42d29fe7f28fa
Binary file not shown.
Binary file added
BIN
+90 Bytes
...-repositories-meta/user27/template1.git/objects/b9/04864fd6cd0c8e9054351fd39a980bfd214229
Binary file not shown.
Binary file added
BIN
+50 Bytes
...-repositories-meta/user27/template1.git/objects/c5/10abf4c7c3e0dc4bf07db9344c61c4e6ee7cbc
Binary file not shown.
Binary file added
BIN
+15 Bytes
...-repositories-meta/user27/template1.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
tests/gitea-repositories-meta/user27/template1.git/refs/heads/master
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
aacbdfe9e1c4b47f60abe81849045fa4e96f1d75 | ||
2a83b349fa234131fc5db6f2a0498d3f4d3d6038 |
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why here use "false" for file naming escaping (actually sanitizing)?
It seems that the rule can be applied to all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other case expansion is used is in files (eg. in README text). Is there a reason to sanitize in that case?
I planned to leave that unchanged from the current behavior