Skip to content

Commit 09fc7af

Browse files
committed
Sync with v2.12.3
Signed-off-by: Junio C Hamano <[email protected]>
2 parents 9b66978 + 95d6787 commit 09fc7af

File tree

11 files changed

+116
-11
lines changed

11 files changed

+116
-11
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.12.3.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,11 @@ Fixes since v2.12.2
5454
turn revealed incorrect expectations the tests make. These tests
5555
have been updated.
5656

57+
* "git-shell" rejects a request to serve a repository whose name
58+
begins with a dash, which makes it no longer possible to get it
59+
confused into spawning service programs like "git-upload-pack" with
60+
an option like "--help", which in turn would spawn an interactive
61+
pager, instead of working with the repository user asked to access
62+
(i.e. the one whose name is "--help").
63+
5764
Also contains various 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: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,54 +44,62 @@ unreleased) version of Git, that is available from the 'master'
4444
branch of the `git.git` repository.
4545
Documentation for older releases are available here:
4646

47-
* link:v2.12.2/git.html[documentation for release 2.12.2]
47+
* link:v2.12.3/git.html[documentation for release 2.12.3]
4848

4949
* release notes for
50-
link:RelNotes/2.12.2.txt[2.12.2].
51-
link:RelNotes/2.12.1.txt[2.12.1].
50+
link:RelNotes/2.12.3.txt[2.12.3],
51+
link:RelNotes/2.12.2.txt[2.12.2],
52+
link:RelNotes/2.12.1.txt[2.12.1],
5253
link:RelNotes/2.12.0.txt[2.12].
5354

5455
* link:v2.11.1/git.html[documentation for release 2.11.1]
5556

5657
* release notes for
58+
link:RelNotes/2.11.2.txt[2.11.2],
5759
link:RelNotes/2.11.1.txt[2.11.1],
5860
link:RelNotes/2.11.0.txt[2.11].
5961

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

6264
* release notes for
65+
link:RelNotes/2.10.3.txt[2.10.3],
6366
link:RelNotes/2.10.2.txt[2.10.2],
6467
link:RelNotes/2.10.1.txt[2.10.1],
6568
link:RelNotes/2.10.0.txt[2.10].
6669

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

6972
* release notes for
73+
link:RelNotes/2.9.4.txt[2.9.4],
7074
link:RelNotes/2.9.3.txt[2.9.3],
7175
link:RelNotes/2.9.2.txt[2.9.2],
7276
link:RelNotes/2.9.1.txt[2.9.1],
7377
link:RelNotes/2.9.0.txt[2.9].
7478

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

7781
* release notes for
82+
link:RelNotes/2.8.5.txt[2.8.5],
7883
link:RelNotes/2.8.4.txt[2.8.4],
7984
link:RelNotes/2.8.3.txt[2.8.3],
8085
link:RelNotes/2.8.2.txt[2.8.2],
8186
link:RelNotes/2.8.1.txt[2.8.1],
8287
link:RelNotes/2.8.0.txt[2.8].
8388

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

8691
* release notes for
92+
link:RelNotes/2.7.5.txt[2.7.5],
93+
link:RelNotes/2.7.4.txt[2.7.4],
8794
link:RelNotes/2.7.3.txt[2.7.3],
8895
link:RelNotes/2.7.2.txt[2.7.2],
8996
link:RelNotes/2.7.1.txt[2.7.1],
9097
link:RelNotes/2.7.0.txt[2.7].
9198

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

94101
* release notes for
102+
link:RelNotes/2.6.7.txt[2.6.7],
95103
link:RelNotes/2.6.6.txt[2.6.6],
96104
link:RelNotes/2.6.5.txt[2.6.5],
97105
link:RelNotes/2.6.4.txt[2.6.4],
@@ -100,19 +108,21 @@ Documentation for older releases are available here:
100108
link:RelNotes/2.6.1.txt[2.6.1],
101109
link:RelNotes/2.6.0.txt[2.6].
102110

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

105113
* release notes for
114+
link:RelNotes/2.5.6.txt[2.5.6],
106115
link:RelNotes/2.5.5.txt[2.5.5],
107116
link:RelNotes/2.5.4.txt[2.5.4],
108117
link:RelNotes/2.5.3.txt[2.5.3],
109118
link:RelNotes/2.5.2.txt[2.5.2],
110119
link:RelNotes/2.5.1.txt[2.5.1],
111120
link:RelNotes/2.5.0.txt[2.5].
112121

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

115124
* release notes for
125+
link:RelNotes/2.4.12.txt[2.4.12],
116126
link:RelNotes/2.4.11.txt[2.4.11],
117127
link:RelNotes/2.4.10.txt[2.4.10],
118128
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)