File tree Expand file tree Collapse file tree 2 files changed +56
-4
lines changed Expand file tree Collapse file tree 2 files changed +56
-4
lines changed Original file line number Diff line number Diff line change
1
+ GIT v1.5.4.6 Release Notes
2
+ ==========================
3
+
4
+ I personally do not think there is any reason anybody should want to
5
+ run v1.5.4.X series these days, because 'master' version is always
6
+ more stable than any tagged released version of git.
7
+
8
+ This is primarily to futureproof "git-shell" to accept requests
9
+ without a dash between "git" and subcommand name (e.g. "git
10
+ upload-pack") which the newer client will start to make sometime in
11
+ the future.
12
+
13
+ Fixes since v1.5.4.5
14
+ --------------------
15
+
16
+ * Command line option "-n" to "git-repack" was not correctly parsed.
17
+
18
+ * Error messages from "git-apply" when the patchfile cannot be opened
19
+ have been improved.
20
+
21
+ * Error messages from "git-bisect" when given nonsense revisions have
22
+ been improved.
23
+
24
+ * reflog syntax that uses time e.g. "HEAD@{10 seconds ago}:path" did not
25
+ stop parsing at the closing "}".
26
+
27
+ * "git rev-parse --symbolic-full-name ^master^2" printed solitary "^",
28
+ but it should print nothing.
29
+
30
+ * "git apply" did not enforce "match at the beginning" correctly.
31
+
32
+ * a path specification "a/b" in .gitattributes file should not match
33
+ "sub/a/b", but it did.
34
+
35
+ * "git log --date-order --topo-order" did not override the earlier
36
+ date-order with topo-order as expected.
37
+
38
+ * "git fast-export" did not export octopus merges correctly.
39
+
40
+ * "git archive --prefix=$path/" mishandled gitattributes.
41
+
42
+ As usual, it also comes with many documentation fixes and clarifications.
43
+
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ static int do_generic_cmd(const char *me, char *arg)
7
7
{
8
8
const char * my_argv [4 ];
9
9
10
+ setup_path (NULL );
10
11
if (!arg || !(arg = sq_dequote (arg )))
11
12
die ("bad argument" );
12
13
if (prefixcmp (me , "git-" ))
@@ -29,7 +30,6 @@ static int do_cvs_cmd(const char *me, char *arg)
29
30
die ("git-cvsserver only handles server: %s" , arg );
30
31
31
32
setup_path (NULL );
32
-
33
33
return execv_git_cmd (cvsserver_argv );
34
34
}
35
35
@@ -49,15 +49,24 @@ int main(int argc, char **argv)
49
49
char * prog ;
50
50
struct commands * cmd ;
51
51
52
+ /*
53
+ * Special hack to pretend to be a CVS server
54
+ */
52
55
if (argc == 2 && !strcmp (argv [1 ], "cvs server" ))
53
56
argv -- ;
54
- /* We want to see "-c cmd args", and nothing else */
57
+
58
+ /*
59
+ * We do not accept anything but "-c" followed by "cmd arg",
60
+ * where "cmd" is a very limited subset of git commands.
61
+ */
55
62
else if (argc != 3 || strcmp (argv [1 ], "-c" ))
56
63
die ("What do you think I am? A shell?" );
57
64
58
65
prog = argv [2 ];
59
- argv += 2 ;
60
- argc -= 2 ;
66
+ if (!strncmp (prog , "git" , 3 ) && isspace (prog [3 ]))
67
+ /* Accept "git foo" as if the caller said "git-foo". */
68
+ prog [3 ] = '-' ;
69
+
61
70
for (cmd = cmd_list ; cmd -> name ; cmd ++ ) {
62
71
int len = strlen (cmd -> name );
63
72
char * arg ;
You can’t perform that action at this time.
0 commit comments