Skip to content

Commit 2cd900f

Browse files
committed
Merge branch 'maint'
* maint: Prepare for 1.7.3.5 Fix false positives in t3404 due to SHELL=/bin/false close file on error in read_mmfile() Conflicts: RelNotes
2 parents d2559f7 + 1736793 commit 2cd900f

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

Documentation/RelNotes/1.7.3.5.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Git 1.7.3.5 Release Notes
2+
=========================
3+
4+
* The xfuncname pattern used by "git diff" and "git grep" to show the
5+
last notable line in context were broken for python and ruby for a long
6+
time.
7+
8+
* "git merge" into an unborn branch removed an untracked file "foo" from
9+
the working tree when merged branch had "foo" (this fix was already in
10+
1.7.3.3 but was omitted from the release notes by mistake).
11+
12+
* "git status -s" did not quote unprintable characters in paths as
13+
documented.
14+
15+
* "git am --abort" used to always reset to the commit at the beginning of
16+
the last "am" invocation that has stopped, losing any unrelated commits
17+
that may have been made since then. Now it refrains from doing so and
18+
instead issues a warning.
19+
20+
* "git blame" incorrectly reused bogusly cached result of textconv
21+
filter for files from the working tree.
22+
23+
* "git commit" used to abort after the user edited the log message
24+
when the committer information was not correctly set up. It now
25+
aborts before starting the editor.
26+
27+
* "git commit --date=invalid" used to silently ignore the incorrectly
28+
specified date; it is now diagnosed as an error.
29+
30+
* "git rebase --skip" to skip the last commit in a series used to fail
31+
to run post-rewrite hook and to copy notes from old commits that have
32+
successfully been rebased so far. Now it do (backmerge ef88ad2).

t/t3404-rebase-interactive.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ test_expect_success 'setup' '
7171
# "exec" commands are ran with the user shell by default, but this may
7272
# be non-POSIX. For example, if SHELL=zsh then ">file" doesn't work
7373
# to create a file. Unseting SHELL avoids such non-portable behavior
74-
# in tests.
74+
# in tests. It must be exported for it to take effect where needed.
7575
SHELL=
76+
export SHELL
7677

7778
test_expect_success 'rebase -i with the exec command' '
7879
git checkout master &&

xdiff-interface.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,10 @@ int read_mmfile(mmfile_t *ptr, const char *filename)
212212
return error("Could not open %s", filename);
213213
sz = xsize_t(st.st_size);
214214
ptr->ptr = xmalloc(sz ? sz : 1);
215-
if (sz && fread(ptr->ptr, sz, 1, f) != 1)
215+
if (sz && fread(ptr->ptr, sz, 1, f) != 1) {
216+
fclose(f);
216217
return error("Could not read %s", filename);
218+
}
217219
fclose(f);
218220
ptr->size = sz;
219221
return 0;

0 commit comments

Comments
 (0)