Skip to content

Commit 83f18cd

Browse files
committed
Sync with maint
Signed-off-by: Junio C Hamano <[email protected]>
2 parents 1d25dd4 + 92ab409 commit 83f18cd

File tree

2 files changed

+65
-21
lines changed

2 files changed

+65
-21
lines changed

Documentation/RelNotes/1.8.4.2.txt

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Git v1.8.4.2 Release Notes
2+
========================
3+
4+
Fixes since v1.8.4.1
5+
--------------------
6+
7+
* When running "fetch -q", a long silence while the sender side
8+
computes the set of objects to send can be mistaken by proxies as
9+
dropped connection. The server side has been taught to send a
10+
small empty messages to keep the connection alive.
11+
12+
* When the webserver responds with "405 Method Not Allowed", "git
13+
http-backend" should tell the client what methods are allowed with
14+
the "Allow" header.
15+
16+
* "git cvsserver" computed the permission mode bits incorrectly for
17+
executable files.
18+
19+
* The implementation of "add -i" has a crippling code to work around
20+
ActiveState Perl limitation but it by mistake also triggered on Git
21+
for Windows where MSYS perl is used.
22+
23+
* We made sure that we notice the user-supplied GIT_DIR is actually a
24+
gitfile, but did not do the same when the default ".git" is a
25+
gitfile.
26+
27+
* When an object is not found after checking the packfiles and then
28+
loose object directory, read_sha1_file() re-checks the packfiles to
29+
prevent racing with a concurrent repacker; teach the same logic to
30+
has_sha1_file().
31+
32+
* "git commit --author=$name", when $name is not in the canonical
33+
"A. U. Thor <[email protected]>" format, looks for a matching name
34+
from existing history, but did not consult mailmap to grab the
35+
preferred author name.
36+
37+
* The commit object names in the insn sheet that was prepared at the
38+
beginning of "rebase -i" session can become ambiguous as the
39+
rebasing progresses and the repository gains more commits. Make
40+
sure the internal record is kept with full 40-hex object names.
41+
42+
* "git rebase --preserve-merges" internally used the merge machinery
43+
and as a side effect, left merge summary message in the log, but
44+
when rebasing, there should not be a need for merge summary.
45+
46+
* "git rebase -i" forgot that the comment character can be
47+
configurable while reading its insn sheet.
48+
49+
Also contains a handful of trivial code clean-ups, documentation
50+
updates, updates to the test suite, etc.

t/t4254-am-corrupt.sh

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@
33
test_description='git am with corrupt input'
44
. ./test-lib.sh
55

6-
# Note the missing "+++" line:
7-
cat > bad-patch.diff <<'EOF'
8-
From: A U Thor <[email protected]>
9-
diff --git a/f b/f
10-
index 7898192..6178079 100644
11-
--- a/f
12-
@@ -1 +1 @@
13-
-a
14-
+b
15-
EOF
16-
176
test_expect_success setup '
18-
test $? = 0 &&
19-
echo a > f &&
7+
# Note the missing "+++" line:
8+
cat >bad-patch.diff <<-\EOF &&
9+
From: A U Thor <[email protected]>
10+
diff --git a/f b/f
11+
index 7898192..6178079 100644
12+
--- a/f
13+
@@ -1 +1 @@
14+
-a
15+
+b
16+
EOF
17+
18+
echo a >f &&
2019
git add f &&
2120
test_tick &&
2221
git commit -m initial
@@ -26,17 +25,12 @@ test_expect_success setup '
2625
# fatal: unable to write file '(null)' mode 100644: Bad address
2726
# Also, it had the unwanted side-effect of deleting f.
2827
test_expect_success 'try to apply corrupted patch' '
29-
git am bad-patch.diff 2> actual
30-
test $? = 1
28+
test_must_fail git am bad-patch.diff 2>actual
3129
'
3230

33-
cat > expected <<EOF
34-
fatal: git diff header lacks filename information (line 4)
35-
EOF
36-
3731
test_expect_success 'compare diagnostic; ensure file is still here' '
38-
test $? = 0 &&
39-
test -f f &&
32+
echo "fatal: git diff header lacks filename information (line 4)" >expected &&
33+
test_path_is_file f &&
4034
test_cmp expected actual
4135
'
4236

0 commit comments

Comments
 (0)