Skip to content

Commit 531788a

Browse files
committed
Merge branch 'maint-2.4' into maint-2.5
2 parents e568e56 + 4000b40 commit 531788a

File tree

3 files changed

+15
-2
lines changed

3 files changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ Documentation for older releases are available here:
5353
link:RelNotes/2.5.1.txt[2.5.1],
5454
link:RelNotes/2.5.0.txt[2.5].
5555

56-
* link:v2.4.11/git.html[documentation for release 2.4.11]
56+
* link:v2.4.12/git.html[documentation for release 2.4.12]
5757

5858
* release notes for
59+
link:RelNotes/2.4.12.txt[2.4.12],
5960
link:RelNotes/2.4.11.txt[2.4.11],
6061
link:RelNotes/2.4.10.txt[2.4.10],
6162
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)