-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[WIP] escape .git for tarball cache #12806
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
base: master
Are you sure you want to change the base?
Conversation
return 0; | ||
} | ||
|
||
std::string escapeDotGit(const std::string& filename) { |
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.
TODO: We should only do this for the tarball cache.
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.
Also we need to bump the version of this cache as older version might otherwise be confused.
@@ -57,6 +58,81 @@ bool operator == (const git_oid & oid1, const git_oid & oid2) | |||
return git_oid_equal(&oid1, &oid2); | |||
} | |||
|
|||
namespace { | |||
|
|||
int matchesDotPlusGit(const std::string& str) { |
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.
We need a bunch of tests here.
Fix for #10575
Motivation
Context
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.