Skip to content

Commit ebb1f6f

Browse files
committed
Merge branch 'maint-2.11' into maint
2 parents 49800c9 + 773e3a2 commit ebb1f6f

File tree

10 files changed

+105
-8
lines changed

10 files changed

+105
-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.11.2.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Git v2.11.2 Release Notes
2+
=========================
3+
4+
Fixes since v2.11.1
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.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: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,44 +54,51 @@ Documentation for older releases are available here:
5454
* link:v2.11.1/git.html[documentation for release 2.11.1]
5555

5656
* release notes for
57+
link:RelNotes/2.11.2.txt[2.11.2],
5758
link:RelNotes/2.11.1.txt[2.11.1],
5859
link:RelNotes/2.11.0.txt[2.11].
5960

60-
* link:v2.10.2/git.html[documentation for release 2.10.2]
61+
* link:v2.10.3/git.html[documentation for release 2.10.3]
6162

6263
* release notes for
64+
link:RelNotes/2.10.3.txt[2.10.3],
6365
link:RelNotes/2.10.2.txt[2.10.2],
6466
link:RelNotes/2.10.1.txt[2.10.1],
6567
link:RelNotes/2.10.0.txt[2.10].
6668

67-
* link:v2.9.3/git.html[documentation for release 2.9.3]
69+
* link:v2.9.4/git.html[documentation for release 2.9.4]
6870

6971
* release notes for
72+
link:RelNotes/2.9.4.txt[2.9.4],
7073
link:RelNotes/2.9.3.txt[2.9.3],
7174
link:RelNotes/2.9.2.txt[2.9.2],
7275
link:RelNotes/2.9.1.txt[2.9.1],
7376
link:RelNotes/2.9.0.txt[2.9].
7477

75-
* link:v2.8.4/git.html[documentation for release 2.8.4]
78+
* link:v2.8.5/git.html[documentation for release 2.8.5]
7679

7780
* release notes for
81+
link:RelNotes/2.8.5.txt[2.8.5],
7882
link:RelNotes/2.8.4.txt[2.8.4],
7983
link:RelNotes/2.8.3.txt[2.8.3],
8084
link:RelNotes/2.8.2.txt[2.8.2],
8185
link:RelNotes/2.8.1.txt[2.8.1],
8286
link:RelNotes/2.8.0.txt[2.8].
8387

84-
* link:v2.7.3/git.html[documentation for release 2.7.3]
88+
* link:v2.7.5/git.html[documentation for release 2.7.5]
8589

8690
* release notes for
91+
link:RelNotes/2.7.5.txt[2.7.5],
92+
link:RelNotes/2.7.4.txt[2.7.4],
8793
link:RelNotes/2.7.3.txt[2.7.3],
8894
link:RelNotes/2.7.2.txt[2.7.2],
8995
link:RelNotes/2.7.1.txt[2.7.1],
9096
link:RelNotes/2.7.0.txt[2.7].
9197

92-
* link:v2.6.6/git.html[documentation for release 2.6.6]
98+
* link:v2.6.7/git.html[documentation for release 2.6.7]
9399

94100
* release notes for
101+
link:RelNotes/2.6.7.txt[2.6.7],
95102
link:RelNotes/2.6.6.txt[2.6.6],
96103
link:RelNotes/2.6.5.txt[2.6.5],
97104
link:RelNotes/2.6.4.txt[2.6.4],
@@ -100,19 +107,21 @@ Documentation for older releases are available here:
100107
link:RelNotes/2.6.1.txt[2.6.1],
101108
link:RelNotes/2.6.0.txt[2.6].
102109

103-
* link:v2.5.5/git.html[documentation for release 2.5.5]
110+
* link:v2.5.6/git.html[documentation for release 2.5.6]
104111

105112
* release notes for
113+
link:RelNotes/2.5.6.txt[2.5.6],
106114
link:RelNotes/2.5.5.txt[2.5.5],
107115
link:RelNotes/2.5.4.txt[2.5.4],
108116
link:RelNotes/2.5.3.txt[2.5.3],
109117
link:RelNotes/2.5.2.txt[2.5.2],
110118
link:RelNotes/2.5.1.txt[2.5.1],
111119
link:RelNotes/2.5.0.txt[2.5].
112120

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

115123
* release notes for
124+
link:RelNotes/2.4.12.txt[2.4.12],
116125
link:RelNotes/2.4.11.txt[2.4.11],
117126
link:RelNotes/2.4.10.txt[2.4.10],
118127
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)