aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/RelNotes/2.53.0.adoc14
-rw-r--r--Documentation/config/gui.adoc5
-rw-r--r--Documentation/git-send-email.adoc1
-rw-r--r--Documentation/githooks.adoc11
-rw-r--r--connect.c2
-rw-r--r--t/meson.build1
-rwxr-xr-xt/t5565-push-multiple.sh39
7 files changed, 65 insertions, 8 deletions
diff --git a/Documentation/RelNotes/2.53.0.adoc b/Documentation/RelNotes/2.53.0.adoc
index 41ae2a5a7a..34216a59fe 100644
--- a/Documentation/RelNotes/2.53.0.adoc
+++ b/Documentation/RelNotes/2.53.0.adoc
@@ -60,6 +60,13 @@ Performance, Internal Implementation, Development Support etc.
"git diff --find-copioes-harder", also making the operation run
faster.
+ * The "git_istream" abstraction has been revamped to make it easier
+ to interface with pluggable object database design.
+
+ * Rewrite the only use of "mktemp()" that is subject to TOCTOU race
+ and Stop using the insecure "mktemp()" function.
+ (merge 10bba537c4 rs/ban-mktemp later to maint).
+
Fixes since v2.52
-----------------
@@ -167,6 +174,9 @@ Fixes since v2.52
pathspec, which has been corrected.
(merge 05491b90ce js/last-modified-with-sparse-checkouts later to maint).
+ * Emulation code clean-up.
+ (merge 42aa7603aa gf/win32-pthread-cond-init later to maint).
+
* Other code cleanup, docfix, build fix, etc.
(merge 46207a54cc qj/doc-http-bad-want-response later to maint).
(merge df90eccd93 kh/doc-commit-extra-references later to maint).
@@ -174,3 +184,7 @@ Fixes since v2.52
(merge fddba8f737 ja/doc-synopsis-style later to maint).
(merge 22ce0cb639 en/xdiff-cleanup-2 later to maint).
(merge 8ef7355a8f je/doc-pull later to maint).
+ (merge 48176f953f jc/capability-leak later to maint).
+ (merge 8cbbdc92f7 kh/doc-pre-commit-fix later to maint).
+ (merge d4bc39a4d9 mh/doc-config-gui-gcwarning later to maint).
+ (merge 41d425008a kh/doc-send-email-paragraph-fix later to maint).
diff --git a/Documentation/config/gui.adoc b/Documentation/config/gui.adoc
index 171be774d2..1565c0af19 100644
--- a/Documentation/config/gui.adoc
+++ b/Documentation/config/gui.adoc
@@ -55,3 +55,8 @@ gui.blamehistoryctx::
linkgit:gitk[1] for the selected commit, when the `Show History
Context` menu item is invoked from 'git gui blame'. If this
variable is set to zero, the whole history is shown.
+
+gui.GCWarning::
+ Determines whether linkgit:git-gui[1] should prompt for garbage
+ collection when git detects a large number of loose objects in
+ the repository. The default value is "true".
diff --git a/Documentation/git-send-email.adoc b/Documentation/git-send-email.adoc
index 263b977353..688efe2786 100644
--- a/Documentation/git-send-email.adoc
+++ b/Documentation/git-send-email.adoc
@@ -321,7 +321,6 @@ for instructions.
If disabled with `--no-use-imap-only`, the emails will be sent like usual.
Disabled by default, but the `sendemail.useImapOnly` configuration
variable can be used to enable it.
-
+
This feature requires setting up `git imap-send`. See linkgit:git-imap-send[1]
for instructions.
diff --git a/Documentation/githooks.adoc b/Documentation/githooks.adoc
index 0397dec64d..056553788d 100644
--- a/Documentation/githooks.adoc
+++ b/Documentation/githooks.adoc
@@ -103,17 +103,14 @@ invoked before obtaining the proposed commit log message and
making a commit. Exiting with a non-zero status from this script
causes the `git commit` command to abort before creating a commit.
-The default 'pre-commit' hook, when enabled, catches introduction
-of lines with trailing whitespaces and aborts the commit when
-such a line is found.
-
All the `git commit` hooks are invoked with the environment
variable `GIT_EDITOR=:` if the command will not bring up an editor
to modify the commit message.
-The default 'pre-commit' hook, when enabled--and with the
-`hooks.allownonascii` config option unset or set to false--prevents
-the use of non-ASCII filenames.
+The default 'pre-commit' hook, when enabled, prevents the introduction
+of non-ASCII filenames and lines with trailing whitespace. The non-ASCII
+check can be turned off by setting the `hooks.allownonascii` config
+option to `true`.
pre-merge-commit
~~~~~~~~~~~~~~~~
diff --git a/connect.c b/connect.c
index 8352b71faf..c6f76e3082 100644
--- a/connect.c
+++ b/connect.c
@@ -240,6 +240,8 @@ static void process_capabilities(struct packet_reader *reader, size_t *linelen)
size_t nul_location = strlen(line);
if (nul_location == *linelen)
return;
+
+ free(server_capabilities_v1);
server_capabilities_v1 = xstrdup(line + nul_location + 1);
*linelen = nul_location;
diff --git a/t/meson.build b/t/meson.build
index d3d0be2822..459c52a489 100644
--- a/t/meson.build
+++ b/t/meson.build
@@ -690,6 +690,7 @@ integration_tests = [
't5562-http-backend-content-length.sh',
't5563-simple-http-auth.sh',
't5564-http-proxy.sh',
+ 't5565-push-multiple.sh',
't5570-git-daemon.sh',
't5571-pre-push-hook.sh',
't5572-pull-submodule.sh',
diff --git a/t/t5565-push-multiple.sh b/t/t5565-push-multiple.sh
new file mode 100755
index 0000000000..7e93668566
--- /dev/null
+++ b/t/t5565-push-multiple.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+test_description='push to group'
+
+. ./test-lib.sh
+
+test_expect_success setup '
+ for i in 1 2 3
+ do
+ git init dest-$i &&
+ git -C dest-$i symbolic-ref HEAD refs/heads/not-a-branch ||
+ return 1
+ done &&
+ test_tick &&
+ git commit --allow-empty -m "initial" &&
+ git config set --append remote.them.pushurl "file://$(pwd)/dest-1" &&
+ git config set --append remote.them.pushurl "file://$(pwd)/dest-2" &&
+ git config set --append remote.them.pushurl "file://$(pwd)/dest-3" &&
+ git config set --append remote.them.push "+refs/heads/*:refs/heads/*"
+'
+
+test_expect_success 'push to group' '
+ git push them &&
+ j= &&
+ for i in 1 2 3
+ do
+ git -C dest-$i for-each-ref >actual-$i &&
+ if test -n "$j"
+ then
+ test_cmp actual-$j actual-$i
+ else
+ cat actual-$i
+ fi &&
+ j=$i ||
+ return 1
+ done
+'
+
+test_done