Skip to content

Commit a849d36

Browse files
committed
Merge branch 'maint-2.10' into maint-2.11
2 parents 3b9e3c2 + 840ed14 commit a849d36

File tree

9 files changed

+92
-8
lines changed

9 files changed

+92
-8
lines changed

Documentation/RelNotes/2.10.3.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,11 @@ Fixes since v2.10.2
4545
* Improve the rule to convert "unsigned char [20]" into "struct
4646
object_id *" in contrib/coccinelle/
4747

48+
* "git-shell" rejects a request to serve a repository whose name
49+
begins with a dash, which makes it no longer possible to get it
50+
confused into spawning service programs like "git-upload-pack" with
51+
an option like "--help", which in turn would spawn an interactive
52+
pager, instead of working with the repository user asked to access
53+
(i.e. the one whose name is "--help").
54+
4855
Also contains minor documentation updates and code clean-ups.

Documentation/RelNotes/2.4.12.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Git v2.4.12 Release Notes
2+
=========================
3+
4+
Fixes since v2.4.11
5+
-------------------
6+
7+
* "git-shell" rejects a request to serve a repository whose name
8+
begins with a dash, which makes it no longer possible to get it
9+
confused into spawning service programs like "git-upload-pack" with
10+
an option like "--help", which in turn would spawn an interactive
11+
pager, instead of working with the repository user asked to access
12+
(i.e. the one whose name is "--help").

Documentation/RelNotes/2.5.6.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Git v2.5.6 Release Notes
2+
========================
3+
4+
Fixes since v2.5.5
5+
------------------
6+
7+
* "git-shell" rejects a request to serve a repository whose name
8+
begins with a dash, which makes it no longer possible to get it
9+
confused into spawning service programs like "git-upload-pack" with
10+
an option like "--help", which in turn would spawn an interactive
11+
pager, instead of working with the repository user asked to access
12+
(i.e. the one whose name is "--help").

Documentation/RelNotes/2.6.7.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Git v2.6.7 Release Notes
2+
========================
3+
4+
Fixes since v2.6.6
5+
------------------
6+
7+
* "git-shell" rejects a request to serve a repository whose name
8+
begins with a dash, which makes it no longer possible to get it
9+
confused into spawning service programs like "git-upload-pack" with
10+
an option like "--help", which in turn would spawn an interactive
11+
pager, instead of working with the repository user asked to access
12+
(i.e. the one whose name is "--help").

Documentation/RelNotes/2.7.5.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Git v2.7.5 Release Notes
2+
========================
3+
4+
Fixes since v2.7.4
5+
------------------
6+
7+
* "git-shell" rejects a request to serve a repository whose name
8+
begins with a dash, which makes it no longer possible to get it
9+
confused into spawning service programs like "git-upload-pack" with
10+
an option like "--help", which in turn would spawn an interactive
11+
pager, instead of working with the repository user asked to access
12+
(i.e. the one whose name is "--help").
13+
14+
Also contains a few fixes backported from later development tracks.

Documentation/RelNotes/2.8.5.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Git v2.8.5 Release Notes
2+
========================
3+
4+
Fixes since v2.8.4
5+
------------------
6+
7+
* "git-shell" rejects a request to serve a repository whose name
8+
begins with a dash, which makes it no longer possible to get it
9+
confused into spawning service programs like "git-upload-pack" with
10+
an option like "--help", which in turn would spawn an interactive
11+
pager, instead of working with the repository user asked to access
12+
(i.e. the one whose name is "--help").

Documentation/RelNotes/2.9.4.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,11 @@ Fixes since v2.9.3
8080
the file descriptor still open. Open tempfile with O_CLOEXEC flag
8181
to avoid this (on Windows, this is mapped to O_NOINHERIT).
8282

83+
* "git-shell" rejects a request to serve a repository whose name
84+
begins with a dash, which makes it no longer possible to get it
85+
confused into spawning service programs like "git-upload-pack" with
86+
an option like "--help", which in turn would spawn an interactive
87+
pager, instead of working with the repository user asked to access
88+
(i.e. the one whose name is "--help").
89+
8390
Also contains minor documentation updates and code clean-ups.

Documentation/git.txt

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,41 +50,47 @@ Documentation for older releases are available here:
5050
link:RelNotes/2.11.1.txt[2.11.1],
5151
link:RelNotes/2.11.0.txt[2.11].
5252

53-
* link:v2.10.2/git.html[documentation for release 2.10.2]
53+
* link:v2.10.3/git.html[documentation for release 2.10.3]
5454

5555
* release notes for
56+
link:RelNotes/2.10.3.txt[2.10.3],
5657
link:RelNotes/2.10.2.txt[2.10.2],
5758
link:RelNotes/2.10.1.txt[2.10.1],
5859
link:RelNotes/2.10.0.txt[2.10].
5960

60-
* link:v2.9.3/git.html[documentation for release 2.9.3]
61+
* link:v2.9.4/git.html[documentation for release 2.9.4]
6162

6263
* release notes for
64+
link:RelNotes/2.9.4.txt[2.9.4],
6365
link:RelNotes/2.9.3.txt[2.9.3],
6466
link:RelNotes/2.9.2.txt[2.9.2],
6567
link:RelNotes/2.9.1.txt[2.9.1],
6668
link:RelNotes/2.9.0.txt[2.9].
6769

68-
* link:v2.8.4/git.html[documentation for release 2.8.4]
70+
* link:v2.8.5/git.html[documentation for release 2.8.5]
6971

7072
* release notes for
73+
link:RelNotes/2.8.5.txt[2.8.5],
7174
link:RelNotes/2.8.4.txt[2.8.4],
7275
link:RelNotes/2.8.3.txt[2.8.3],
7376
link:RelNotes/2.8.2.txt[2.8.2],
7477
link:RelNotes/2.8.1.txt[2.8.1],
7578
link:RelNotes/2.8.0.txt[2.8].
7679

77-
* link:v2.7.3/git.html[documentation for release 2.7.3]
80+
* link:v2.7.5/git.html[documentation for release 2.7.5]
7881

7982
* release notes for
83+
link:RelNotes/2.7.5.txt[2.7.5],
84+
link:RelNotes/2.7.4.txt[2.7.4],
8085
link:RelNotes/2.7.3.txt[2.7.3],
8186
link:RelNotes/2.7.2.txt[2.7.2],
8287
link:RelNotes/2.7.1.txt[2.7.1],
8388
link:RelNotes/2.7.0.txt[2.7].
8489

85-
* link:v2.6.6/git.html[documentation for release 2.6.6]
90+
* link:v2.6.7/git.html[documentation for release 2.6.7]
8691

8792
* release notes for
93+
link:RelNotes/2.6.7.txt[2.6.7],
8894
link:RelNotes/2.6.6.txt[2.6.6],
8995
link:RelNotes/2.6.5.txt[2.6.5],
9096
link:RelNotes/2.6.4.txt[2.6.4],
@@ -93,19 +99,21 @@ Documentation for older releases are available here:
9399
link:RelNotes/2.6.1.txt[2.6.1],
94100
link:RelNotes/2.6.0.txt[2.6].
95101

96-
* link:v2.5.5/git.html[documentation for release 2.5.5]
102+
* link:v2.5.6/git.html[documentation for release 2.5.6]
97103

98104
* release notes for
105+
link:RelNotes/2.5.6.txt[2.5.6],
99106
link:RelNotes/2.5.5.txt[2.5.5],
100107
link:RelNotes/2.5.4.txt[2.5.4],
101108
link:RelNotes/2.5.3.txt[2.5.3],
102109
link:RelNotes/2.5.2.txt[2.5.2],
103110
link:RelNotes/2.5.1.txt[2.5.1],
104111
link:RelNotes/2.5.0.txt[2.5].
105112

106-
* link:v2.4.11/git.html[documentation for release 2.4.11]
113+
* link:v2.4.12/git.html[documentation for release 2.4.12]
107114

108115
* release notes for
116+
link:RelNotes/2.4.12.txt[2.4.12],
109117
link:RelNotes/2.4.11.txt[2.4.11],
110118
link:RelNotes/2.4.10.txt[2.4.10],
111119
link:RelNotes/2.4.9.txt[2.4.9],

shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ static int do_generic_cmd(const char *me, char *arg)
1313
const char *my_argv[4];
1414

1515
setup_path();
16-
if (!arg || !(arg = sq_dequote(arg)))
16+
if (!arg || !(arg = sq_dequote(arg)) || *arg == '-')
1717
die("bad argument");
1818
if (!starts_with(me, "git-"))
1919
die("bad command");

0 commit comments

Comments
 (0)