mirror of
https://github.com/git/git
synced 2024-09-13 21:34:42 +00:00
Merge branch 'ds/t5510-brokequote' into maint
Test fix. source: <484a330e-0902-6e1b-8189-63c72dcea494@github.com> * ds/t5510-brokequote: t5510: replace 'origin' with URL more carefully
This commit is contained in:
commit
2d39f66a52
|
@ -853,7 +853,11 @@ test_configured_prune_type () {
|
|||
then
|
||||
new_cmdline=$cmdline_setup
|
||||
else
|
||||
new_cmdline=$(printf "%s" "$cmdline" | perl -pe 's[origin(?!/)]["'"$remote_url"'"]g')
|
||||
new_cmdline=$(perl -e '
|
||||
my ($cmdline, $url) = @ARGV;
|
||||
$cmdline =~ s[origin(?!/)][quotemeta($url)]ge;
|
||||
print $cmdline;
|
||||
' -- "$cmdline" "$remote_url")
|
||||
fi
|
||||
|
||||
if test "$fetch_prune_tags" = 'true' ||
|
||||
|
|
Loading…
Reference in a new issue