Skip to content

Commit c255a70

Browse files
committed
Merge branch 'maint'
* maint: Documentation: add submodule.* to the big configuration variable list gitmodules.5: url can be a relative path gitweb: fix esc_url
2 parents fc05157 + 0ad0a61 commit c255a70

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Documentation/config.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,6 +1734,15 @@ status.submodulesummary::
17341734
summary of commits for modified submodules will be shown (see
17351735
--summary-limit option of linkgit:git-submodule[1]).
17361736

1737+
submodule.<name>.path::
1738+
submodule.<name>.url::
1739+
submodule.<name>.update::
1740+
The path within this project, URL, and the updating strategy
1741+
for a submodule. These variables are initially populated
1742+
by 'git submodule init'; edit them to override the
1743+
URL and other values found in the `.gitmodules` file. See
1744+
linkgit:git-submodule[1] and linkgit:gitmodules[5] for details.
1745+
17371746
tar.umask::
17381747
This variable can be used to restrict the permission bits of
17391748
tar archive entries. The default is 0002, which turns off the

Documentation/gitmodules.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ submodule.<name>.path::
2929

3030
submodule.<name>.url::
3131
Defines an url from where the submodule repository can be cloned.
32+
This may be either an absolute URL ready to be passed to
33+
linkgit:git-clone[1] or (if it begins with ./ or ../) a location
34+
relative to the superproject's origin repository.
3235

3336
submodule.<name>.update::
3437
Defines what to do when the submodule is updated by the superproject.

gitweb/gitweb.perl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,7 @@ sub esc_param {
13271327
sub esc_url {
13281328
my $str = shift;
13291329
return undef unless defined $str;
1330-
$str =~ s/([^A-Za-z0-9\-_.~();\/;?:@&=])/sprintf("%%%02X", ord($1))/eg;
1331-
$str =~ s/\+/%2B/g;
1330+
$str =~ s/([^A-Za-z0-9\-_.~();\/;?:@&= ]+)/CGI::escape($1)/eg;
13321331
$str =~ s/ /\+/g;
13331332
return $str;
13341333
}

0 commit comments

Comments
 (0)