-
Notifications
You must be signed in to change notification settings - Fork 362
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
Fix lint W59 with a local path that is not an archive #6219
Conversation
tests/reftests/lint.test
Outdated
dev-repo: "hg+https://to@li.nt" | ||
bug-reports: "https://nobug" | ||
### <add-url.sh> | ||
basedir=`echo "$BASEDIR" | sed 's/\\\\/\\\\\\\\\\\\\\\\/g'` |
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.
you used single quotes here instead of double-quotes and only halved the left part of the sed, not the right part.
basedir=`echo "$BASEDIR" | sed 's/\\\\/\\\\\\\\\\\\\\\\/g'` | |
basedir=`echo "$BASEDIR" | sed 's/\\\\/\\\\\\\\/g'` |
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.
actually what is the goal of this sed? Is it just to escape every backslashes? If so, then the solution might be instead:
basedir=`echo "$BASEDIR" | sed 's/\\\\/\\\\\\\\\\\\\\\\/g'` | |
basedir=`echo "$BASEDIR" | sed 's/\\/\\\\/g'` |
I know is everywhere in the reftests in its double-quoted form but i’ve never really understood it ^^"
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.
It's the different levels of escape that are needed to end with s/\\/\\\\/g
launched.
tests/reftests/lint.test
Outdated
dev-repo: "hg+https://to@li.nt" | ||
bug-reports: "https://nobug" | ||
### <add-url.sh> | ||
basedir=`echo "$BASEDIR" | sed 's/\\\\/\\\\\\\\\\\\\\\\/g'` |
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.
same here
basedir=`echo "$BASEDIR" | sed 's/\\\\/\\\\\\\\\\\\\\\\/g'` | |
basedir=`echo "$BASEDIR" | sed 's/\\\\/\\\\\\\\/g'` |
…ising the extension
Thanks! |
fix #6218
backported to 2.3 in #6220