Skip to content

Commit ab37a18

Browse files
committed
Merge branch 'maint-2.5' into maint-2.6
2 parents e465796 + ac33201 commit ab37a18

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

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/git.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,21 @@ Documentation for older releases are available here:
5454
link:RelNotes/2.6.1.txt[2.6.1],
5555
link:RelNotes/2.6.0.txt[2.6].
5656

57-
* link:v2.5.5/git.html[documentation for release 2.5.5]
57+
* link:v2.5.6/git.html[documentation for release 2.5.6]
5858

5959
* release notes for
60+
link:RelNotes/2.5.6.txt[2.5.6],
6061
link:RelNotes/2.5.5.txt[2.5.5],
6162
link:RelNotes/2.5.4.txt[2.5.4],
6263
link:RelNotes/2.5.3.txt[2.5.3],
6364
link:RelNotes/2.5.2.txt[2.5.2],
6465
link:RelNotes/2.5.1.txt[2.5.1],
6566
link:RelNotes/2.5.0.txt[2.5].
6667

67-
* link:v2.4.11/git.html[documentation for release 2.4.11]
68+
* link:v2.4.12/git.html[documentation for release 2.4.12]
6869

6970
* release notes for
71+
link:RelNotes/2.4.12.txt[2.4.12],
7072
link:RelNotes/2.4.11.txt[2.4.11],
7173
link:RelNotes/2.4.10.txt[2.4.10],
7274
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)