mirror of
https://github.com/git/git.git
synced 2024-11-01 14:57:52 +01:00
escape ' ' with '+' in url's
This commit is contained in:
parent
7f2a645e4f
commit
a9e60b7d09
1 changed files with 2 additions and 2 deletions
|
@ -209,8 +209,8 @@ if (!defined $action || $action eq "summary") {
|
|||
|
||||
sub esc {
|
||||
my $str = shift;
|
||||
$str =~ s/ /%20/g;
|
||||
$str =~ s/\+/%2B/g;
|
||||
$str =~ s/ /\+/g;
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
@ -2167,7 +2167,7 @@ sub git_search {
|
|||
|
||||
if ($pickaxe_search) {
|
||||
$/ = "\n";
|
||||
open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin -S$searchtext";
|
||||
open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin -S\'$searchtext\'";
|
||||
undef %co;
|
||||
my @files;
|
||||
while (my $line = <$fd>) {
|
||||
|
|
Loading…
Reference in a new issue