]> git.ipfire.org Git - thirdparty/git.git/log
thirdparty/git.git
2 years agol10n: it: fix typos found by git-po-helper
Jiang Xin [Sun, 14 Nov 2021 11:40:41 +0000 (19:40 +0800)] 
l10n: it: fix typos found by git-po-helper

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
2 years agol10n: ko: fix typos found by git-po-helper
Jiang Xin [Thu, 11 Nov 2021 00:54:16 +0000 (08:54 +0800)] 
l10n: ko: fix typos found by git-po-helper

When checking typos in file "po/ko.po", "git-po-helper" reports lots of
false positives because there are no spaces between ASCII and Korean
characters. After applied commit adee197 "(dict: add smudge table for
Korean language, 2021-11-11)" of "git-l10n/git-po-helper" to suppress
these false positives, some easy-to-fix typos are found and fixed.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
2 years agol10n: Update Catalan translation
Jordi Mas [Sat, 13 Nov 2021 15:35:53 +0000 (16:35 +0100)] 
l10n: Update Catalan translation

Signed-off-by: Jordi Mas <jmas@softcatala.org>
2 years agoMerge branch 'po-id' of github.com:bagasme/git-po
Jiang Xin [Sat, 13 Nov 2021 06:42:30 +0000 (14:42 +0800)] 
Merge branch 'po-id' of github.com:bagasme/git-po

* 'po-id' of github.com:bagasme/git-po:
  l10n: po-id for 2.34 (round 3)

2 years agol10n: po-id for 2.34 (round 3)
Bagas Sanjaya [Thu, 11 Nov 2021 07:43:22 +0000 (14:43 +0700)] 
l10n: po-id for 2.34 (round 3)

  - Translate following new components:
    * merge.c
    * rebase-interactive.c
    * rebase.c
    * midx.c
  - Clean up obsolete translations

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
2 years agoMerge branch 'master' of github.com:ruester/git-po-de
Jiang Xin [Sat, 13 Nov 2021 01:27:58 +0000 (09:27 +0800)] 
Merge branch 'master' of github.com:ruester/git-po-de

* 'master' of github.com:ruester/git-po-de:
  l10n: de.po: Update German translation for Git v2.34.0

2 years agol10n: bg.po: Updated Bulgarian translation (5211t)
Alexander Shopov [Fri, 12 Nov 2021 07:00:54 +0000 (08:00 +0100)] 
l10n: bg.po: Updated Bulgarian translation (5211t)

Signed-off-by: Alexander Shopov <ash@kambanaria.org>
2 years agol10n: de.po: Update German translation for Git v2.34.0
Matthias Rüster [Sun, 7 Nov 2021 17:07:34 +0000 (18:07 +0100)] 
l10n: de.po: Update German translation for Git v2.34.0

Signed-off-by: Matthias Rüster <matthias.ruester@gmail.com>
Reviewed-by: Ralf Thielow <ralf.thielow@gmail.com>
Reviewed-by: Phillip Szelat <phillip.szelat@gmail.com>
2 years agol10n: sv.po: Update Swedish translation (5211t0f0)
Peter Krefting [Thu, 11 Nov 2021 22:22:48 +0000 (23:22 +0100)] 
l10n: sv.po: Update Swedish translation (5211t0f0)

Signed-off-by: Peter Krefting <peter@softwolves.pp.se>
2 years agol10n: vi(5211t): Translation for v2.34.0 rd3
Tran Ngoc Quan [Thu, 11 Nov 2021 06:19:34 +0000 (13:19 +0700)] 
l10n: vi(5211t): Translation for v2.34.0 rd3

Signed-off-by: Tran Ngoc Quan <vnwildman@gmail.com>
2 years agoMerge branch 'l10n/zh_TW/211111' of github.com:l10n-tw/git-po
Jiang Xin [Thu, 11 Nov 2021 00:28:26 +0000 (08:28 +0800)] 
Merge branch 'l10n/zh_TW/211111' of github.com:l10n-tw/git-po

* 'l10n/zh_TW/211111' of github.com:l10n-tw/git-po:
  l10n: zh_TW.po: v2.34.0 round 3 (0 untranslated)

2 years agoMerge branch 'fr_v2.34.0_rnd3' of github.com:jnavila/git
Jiang Xin [Thu, 11 Nov 2021 00:27:49 +0000 (08:27 +0800)] 
Merge branch 'fr_v2.34.0_rnd3' of github.com:jnavila/git

* 'fr_v2.34.0_rnd3' of github.com:jnavila/git:
  l10n: fr: v2.34.0 rnd 3

2 years agoMerge branch 'tr-2-34-r3' of github.com:bitigchi/git-po
Jiang Xin [Thu, 11 Nov 2021 00:26:54 +0000 (08:26 +0800)] 
Merge branch 'tr-2-34-r3' of github.com:bitigchi/git-po

* 'tr-2-34-r3' of github.com:bitigchi/git-po:
  l10n: tr: v2.34.0 round 3

2 years agol10n: zh_TW.po: v2.34.0 round 3 (0 untranslated)
Yi-Jyun Pan [Wed, 10 Nov 2021 22:43:41 +0000 (06:43 +0800)] 
l10n: zh_TW.po: v2.34.0 round 3 (0 untranslated)

Signed-off-by: Yi-Jyun Pan <pan93412@gmail.com>
2 years agol10n: fr: v2.34.0 rnd 3
Jean-Noël Avila [Wed, 10 Nov 2021 21:01:57 +0000 (22:01 +0100)] 
l10n: fr: v2.34.0 rnd 3

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
2 years agol10n: tr: v2.34.0 round 3
Emir Sarı [Wed, 10 Nov 2021 18:21:28 +0000 (21:21 +0300)] 
l10n: tr: v2.34.0 round 3

Signed-off-by: Emir Sarı <bitigchi@me.com>
2 years agol10n: zh_CN: v2.34.0 round 3
Fangyi Zhou [Wed, 10 Nov 2021 12:29:09 +0000 (12:29 +0000)] 
l10n: zh_CN: v2.34.0 round 3

Signed-off-by: Fangyi Zhou <me@fangyi.io>
2 years agoMerge branch 'master' of github.com:alshopov/git-po
Jiang Xin [Wed, 10 Nov 2021 02:18:44 +0000 (10:18 +0800)] 
Merge branch 'master' of github.com:alshopov/git-po

* 'master' of github.com:alshopov/git-po:
  l10n: bg.po: Updated Bulgarian translation (5210t)

2 years agol10n: git.pot: v2.34.0 round 3 (1 new)
Jiang Xin [Wed, 10 Nov 2021 00:56:22 +0000 (08:56 +0800)] 
l10n: git.pot: v2.34.0 round 3 (1 new)

Generate po/git.pot from v2.34.0-rc2 for git v2.34.0 l10n round 3.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
2 years agoMerge branch 'master' of github.com:git/git
Jiang Xin [Wed, 10 Nov 2021 00:55:14 +0000 (08:55 +0800)] 
Merge branch 'master' of github.com:git/git

* 'master' of github.com:git/git:
  Git 2.34-rc2
  parse-options.[ch]: revert use of "enum" for parse_options()
  t/lib-git.sh: fix ACL-related permissions failure
  A few fixes before -rc2
  async_die_is_recursing: work around GCC v11.x issue on Fedora
  Document positive variant of commit and merge option "--no-verify"
  pull: honor --no-verify and do not call the commit-msg hook
  http-backend: remove a duplicated code branch

2 years agoGit 2.34-rc2 v2.34.0-rc2
Junio C Hamano [Tue, 9 Nov 2021 21:19:51 +0000 (13:19 -0800)] 
Git 2.34-rc2

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agoMerge branch 'ab/parse-options-cleanup'
Junio C Hamano [Tue, 9 Nov 2021 21:19:06 +0000 (13:19 -0800)] 
Merge branch 'ab/parse-options-cleanup'

Last minute fix to the update already in 'master'.

* ab/parse-options-cleanup:
  parse-options.[ch]: revert use of "enum" for parse_options()

2 years agoMerge branch 'ad/ssh-signing-testfix'
Junio C Hamano [Tue, 9 Nov 2021 21:19:06 +0000 (13:19 -0800)] 
Merge branch 'ad/ssh-signing-testfix'

Fix ssh-signing test to work on a platform where the default ACL is
overly loose to upset OpenSSH (reported on an installation of Cygwin).

* ad/ssh-signing-testfix:
  t/lib-git.sh: fix ACL-related permissions failure

2 years agoparse-options.[ch]: revert use of "enum" for parse_options()
Ævar Arnfjörð Bjarmason [Tue, 9 Nov 2021 11:04:43 +0000 (12:04 +0100)] 
parse-options.[ch]: revert use of "enum" for parse_options()

Revert the parse_options() prototype change in my recent
352e761388b (parse-options.[ch]: consistently use "enum
parse_opt_result", 2021-10-08) was incorrect. The parse_options()
function returns the number of argc elements that haven't been
processed, not "enum parse_opt_result".

Reported-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agol10n: pl: 2.34.0 round 2
Arusekk [Tue, 9 Nov 2021 13:48:08 +0000 (14:48 +0100)] 
l10n: pl: 2.34.0 round 2

Signed-off-by: Arusekk <arek_koz@o2.pl>
2 years agol10n: vi(5210t): Translation for v2.34.0 rd2
Tran Ngoc Quan [Mon, 8 Nov 2021 01:39:44 +0000 (08:39 +0700)] 
l10n: vi(5210t): Translation for v2.34.0 rd2

Signed-off-by: Tran Ngoc Quan <vnwildman@gmail.com>
2 years agol10n: es: 2.34.0 round 2
Christopher Diaz Riveros [Sun, 10 Oct 2021 11:28:14 +0000 (13:28 +0200)] 
l10n: es: 2.34.0 round 2

Signed-off-by: Christopher Diaz Riveros <christopher.diaz.riv@gmail.com>
Signed-off-by: Omar Olivares <omar@olivares.cl>
Signed-off-by: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2 years agol10n: Update Catalan translation
Jordi Mas [Sat, 6 Nov 2021 12:43:08 +0000 (13:43 +0100)] 
l10n: Update Catalan translation

Signed-off-by: Jordi Mas <jmas@softcatala.org>
2 years agol10n: bg.po: Updated Bulgarian translation (5210t)
Alexander Shopov [Sat, 6 Nov 2021 10:31:37 +0000 (11:31 +0100)] 
l10n: bg.po: Updated Bulgarian translation (5210t)

Signed-off-by: Alexander Shopov <ash@kambanaria.org>
2 years agoMerge branch 'pt-PT' of github.com:git-l10n-pt-PT/git-po
Jiang Xin [Sat, 6 Nov 2021 04:32:08 +0000 (12:32 +0800)] 
Merge branch 'pt-PT' of github.com:git-l10n-pt-PT/git-po

* 'pt-PT' of github.com:git-l10n-pt-PT/git-po:
  l10n: pt_PT: cleaning duplicate translations (#2)

2 years agoMerge branch 'l10n/zh_TW/211104' of github.com:l10n-tw/git-po
Jiang Xin [Sat, 6 Nov 2021 04:16:02 +0000 (12:16 +0800)] 
Merge branch 'l10n/zh_TW/211104' of github.com:l10n-tw/git-po

* 'l10n/zh_TW/211104' of github.com:l10n-tw/git-po:
  l10n: zh_TW.po: v2.34.0 round 2 (0 untranslated)

2 years agot/lib-git.sh: fix ACL-related permissions failure
Adam Dinwoodie [Fri, 5 Nov 2021 19:31:06 +0000 (19:31 +0000)] 
t/lib-git.sh: fix ACL-related permissions failure

As well as checking that the relevant functionality is available, the
GPGSSH prerequisite check creates the SSH keys that are used by the test
functions it gates.  If these keys are created in a directory that
has a default Access Control List, the key files can inherit those
permissions.

This can result in a scenario where the private keys are created
successfully, so the prerequisite check passes and the tests are run,
but the key files have permissions that are too permissive, meaning
OpenSSH will refuse to load them and the tests will fail.

To avoid this happening, before creating the keys, clear any default ACL
set on the directory that will contain them.  This step allowed to fail;
if setfacl isn't present, that's a very likely indicator that the
filesystem in question simply doesn't support default ACLs.

Helped-by: Fabian Stelzer <fs@gigacodes.de>
Signed-off-by: Adam Dinwoodie <adam@dinwoodie.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agol10n: fr: v2.34.0 round 2
Jean-Noël Avila [Fri, 5 Nov 2021 19:41:17 +0000 (20:41 +0100)] 
l10n: fr: v2.34.0 round 2

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
2 years agoMerge branch 'po-id' of github.com:bagasme/git-po
Jiang Xin [Fri, 5 Nov 2021 11:48:09 +0000 (19:48 +0800)] 
Merge branch 'po-id' of github.com:bagasme/git-po

* 'po-id' of github.com:bagasme/git-po:
  l10n: po-id for 2.34 (round 2)

2 years agol10n: po-id for 2.34 (round 2)
Bagas Sanjaya [Fri, 5 Nov 2021 08:24:29 +0000 (15:24 +0700)] 
l10n: po-id for 2.34 (round 2)

Translate following new components:

  * gpg-interface.c
  * send-pack.c
  * fetch-pack.c
  * upload-pack.c

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
2 years agol10n: zh_TW.po: v2.34.0 round 2 (0 untranslated)
pan93412 [Thu, 4 Nov 2021 12:09:26 +0000 (20:09 +0800)] 
l10n: zh_TW.po: v2.34.0 round 2 (0 untranslated)

Signed-off-by: pan93412 <pan93412@gmail.com>
2 years agoMerge branch 'master' of github.com:nafmo/git-l10n-sv
Jiang Xin [Fri, 5 Nov 2021 00:18:57 +0000 (08:18 +0800)] 
Merge branch 'master' of github.com:nafmo/git-l10n-sv

* 'master' of github.com:nafmo/git-l10n-sv:
  l10n: sv.po: Update Swedish translation (5210t0f0u)

2 years agoMerge branch 'fz/po-zh_CN' of github.com:fangyi-zhou/git-po
Jiang Xin [Fri, 5 Nov 2021 00:17:50 +0000 (08:17 +0800)] 
Merge branch 'fz/po-zh_CN' of github.com:fangyi-zhou/git-po

* 'fz/po-zh_CN' of github.com:fangyi-zhou/git-po:
  l10n: zh_CN: 2.34.0 Round 2

2 years agol10n: sv.po: Update Swedish translation (5210t0f0u)
Peter Krefting [Mon, 1 Nov 2021 16:40:48 +0000 (17:40 +0100)] 
l10n: sv.po: Update Swedish translation (5210t0f0u)

Signed-off-by: Peter Krefting <peter@softwolves.pp.se>
2 years agoA few fixes before -rc2
Junio C Hamano [Thu, 4 Nov 2021 19:24:46 +0000 (12:24 -0700)] 
A few fixes before -rc2

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agoSync with maint
Junio C Hamano [Thu, 4 Nov 2021 19:24:40 +0000 (12:24 -0700)] 
Sync with maint

2 years agoMerge branch 'vd/pthread-setspecific-g11-fix' into maint
Junio C Hamano [Thu, 4 Nov 2021 19:24:20 +0000 (12:24 -0700)] 
Merge branch 'vd/pthread-setspecific-g11-fix' into maint

One CI task based on Fedora image noticed a not-quite-kosher
consturct recently, which has been corrected.

* vd/pthread-setspecific-g11-fix:
  async_die_is_recursing: work around GCC v11.x issue on Fedora

2 years agoMerge branch 'ma/doc-git-version' into maint
Junio C Hamano [Thu, 4 Nov 2021 19:22:10 +0000 (12:22 -0700)] 
Merge branch 'ma/doc-git-version' into maint

Typofix.

* ma/doc-git-version:
  git.txt: fix typo

2 years agoMerge branch 'pw/rebase-r-fixes' into maint
Junio C Hamano [Thu, 4 Nov 2021 19:20:14 +0000 (12:20 -0700)] 
Merge branch 'pw/rebase-r-fixes' into maint

Regression fix.

* pw/rebase-r-fixes:
  rebase -i: fix rewording with --committer-date-is-author-date

2 years agoMerge branch 'jk/log-warn-on-bogus-encoding' into maint
Junio C Hamano [Thu, 4 Nov 2021 19:20:13 +0000 (12:20 -0700)] 
Merge branch 'jk/log-warn-on-bogus-encoding' into maint

Squelch over-eager warning message added during this cycle.

* jk/log-warn-on-bogus-encoding:
  log: document --encoding behavior on iconv() failure
  Revert "logmsg_reencode(): warn when iconv() fails"

2 years agoMerge branch 'vd/pthread-setspecific-g11-fix'
Junio C Hamano [Thu, 4 Nov 2021 19:07:47 +0000 (12:07 -0700)] 
Merge branch 'vd/pthread-setspecific-g11-fix'

One CI task based on Fedora image noticed a not-quite-kosher
consturct recently, which has been corrected.

* vd/pthread-setspecific-g11-fix:
  async_die_is_recursing: work around GCC v11.x issue on Fedora

2 years agoMerge branch 'rd/http-backend-code-simplification'
Junio C Hamano [Thu, 4 Nov 2021 19:07:46 +0000 (12:07 -0700)] 
Merge branch 'rd/http-backend-code-simplification'

Code simplification.

* rd/http-backend-code-simplification:
  http-backend: remove a duplicated code branch

2 years agoMerge branch 'ar/no-verify-doc'
Junio C Hamano [Thu, 4 Nov 2021 19:07:46 +0000 (12:07 -0700)] 
Merge branch 'ar/no-verify-doc'

Doc update.

* ar/no-verify-doc:
  Document positive variant of commit and merge option "--no-verify"

2 years agoMerge branch 'ar/fix-git-pull-no-verify'
Junio C Hamano [Thu, 4 Nov 2021 19:07:46 +0000 (12:07 -0700)] 
Merge branch 'ar/fix-git-pull-no-verify'

"git pull --no-verify" did not affect the underlying "git merge".

* ar/fix-git-pull-no-verify:
  pull: honor --no-verify and do not call the commit-msg hook

2 years agol10n: zh_CN: 2.34.0 Round 2
Fangyi Zhou [Thu, 4 Nov 2021 11:02:05 +0000 (11:02 +0000)] 
l10n: zh_CN: 2.34.0 Round 2

Signed-off-by: Fangyi Zhou <me@fangyi.io>
2 years agol10n: tr: v2.34.0 round 2
Emir Sarı [Thu, 4 Nov 2021 10:19:12 +0000 (13:19 +0300)] 
l10n: tr: v2.34.0 round 2

Signed-off-by: Emir Sarı <bitigchi@me.com>
2 years agoasync_die_is_recursing: work around GCC v11.x issue on Fedora
Victoria Dye [Thu, 4 Nov 2021 04:01:03 +0000 (04:01 +0000)] 
async_die_is_recursing: work around GCC v11.x issue on Fedora

This fix corrects an issue found in the `dockerized(pedantic, fedora)` CI
build, first appearing after the introduction of a new version of the Fedora
docker image version. This image includes a version of `glibc` with the
attribute `__attr_access_none` added to `pthread_setspecific` [1], the
implementation of which only exists for GCC 11.X - the version included in
the Fedora image. The attribute requires that the pointer provided in the
second argument of `pthread_getspecific` must, if not NULL, be a pointer to
a valid object. In the usage in `async_die_is_recursing`, `(void *)1` is not
valid, causing the error.

This fix imitates a workaround added in SELinux [2] by using the pointer to
the static `async_die_counter` itself as the second argument to
`pthread_setspecific`. This guaranteed non-NULL, valid pointer matches the
intent of the current usage while not triggering the build error.

[1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a1561c3bbe8
[2] https://lore.kernel.org/all/20211021140519.6593-1-cgzones@googlemail.com/

Co-authored-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Victoria Dye <vdye@github.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agol10n: git.pot: v2.34.0 round 2 (3 new, 3 removed)
Jiang Xin [Thu, 4 Nov 2021 00:35:51 +0000 (08:35 +0800)] 
l10n: git.pot: v2.34.0 round 2 (3 new, 3 removed)

Generate po/git.pot from v2.34.0-rc1 for git v2.34.0 l10n round 2.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
2 years agoMerge branch 'master' of github.com:git/git
Jiang Xin [Thu, 4 Nov 2021 00:34:15 +0000 (08:34 +0800)] 
Merge branch 'master' of github.com:git/git

* 'master' of github.com:git/git:
  Git 2.34-rc1
  rebase -i: fix rewording with --committer-date-is-author-date
  dir: fix directory-matching bug
  gpg-interface: avoid buffer overrun in parse_ssh_output()
  gpg-interface: handle missing " with " gracefully in parse_ssh_output()
  A few more topics before -rc1
  i18n: fix typos found during l10n for git 2.34.0
  t5310: drop lib-bundle.sh include
  format-patch (doc): clarify --base=auto
  gc: perform incremental repack when implictly enabled
  fsck: verify multi-pack-index when implictly enabled
  fsck: verify commit graph when implicitly enabled
  grep/pcre2: fix an edge case concerning ascii patterns and UTF-8 data
  commit-graph: don't consider "replace" objects with "verify"
  commit-graph tests: fix another graph_git_two_modes() helper
  commit-graph tests: fix error-hiding graph_git_two_modes() helper
  pretty: colorize pattern matches in commit messages
  grep: refactor next_match() and match_one_pattern() for external use

2 years agoMerge branch 'fz/po-zh_CN' of github.com:fangyi-zhou/git-po
Jiang Xin [Thu, 4 Nov 2021 00:23:26 +0000 (08:23 +0800)] 
Merge branch 'fz/po-zh_CN' of github.com:fangyi-zhou/git-po

* 'fz/po-zh_CN' of github.com:fangyi-zhou/git-po:
  l10n: zh-CN: v2.34.0 round 1

2 years agoGit 2.34-rc1 v2.34.0-rc1
Junio C Hamano [Wed, 3 Nov 2021 20:32:40 +0000 (13:32 -0700)] 
Git 2.34-rc1

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agoMerge branch 'pw/rebase-r-fixes'
Junio C Hamano [Wed, 3 Nov 2021 20:32:28 +0000 (13:32 -0700)] 
Merge branch 'pw/rebase-r-fixes'

Regression fix.

* pw/rebase-r-fixes:
  rebase -i: fix rewording with --committer-date-is-author-date

2 years agoMerge branch 'ds/add-rm-with-sparse-index'
Junio C Hamano [Wed, 3 Nov 2021 20:32:28 +0000 (13:32 -0700)] 
Merge branch 'ds/add-rm-with-sparse-index'

Regression fix.

* ds/add-rm-with-sparse-index:
  dir: fix directory-matching bug

2 years agoMerge branch 'jx/message-fixes'
Junio C Hamano [Wed, 3 Nov 2021 20:32:28 +0000 (13:32 -0700)] 
Merge branch 'jx/message-fixes'

Fixes to recently added messages.

* jx/message-fixes:
  i18n: fix typos found during l10n for git 2.34.0

2 years agoMerge branch 'rs/ssh-signing-fix'
Junio C Hamano [Wed, 3 Nov 2021 20:32:28 +0000 (13:32 -0700)] 
Merge branch 'rs/ssh-signing-fix'

Fixes to recently merged topic.

* rs/ssh-signing-fix:
  gpg-interface: avoid buffer overrun in parse_ssh_output()
  gpg-interface: handle missing " with " gracefully in parse_ssh_output()

2 years agorebase -i: fix rewording with --committer-date-is-author-date
Phillip Wood [Tue, 2 Nov 2021 21:30:51 +0000 (21:30 +0000)] 
rebase -i: fix rewording with --committer-date-is-author-date

baf8ec8d3a (rebase -r: don't write .git/MERGE_MSG when
fast-forwarding, 2021-08-20) stopped reading the author script in
run_git_commit() when rewording a commit. This is normally safe
because "git commit --amend" preserves the authorship. However if the
user passes "--committer-date-is-author-date" then we need to read the
author date from the author script when rewording. Fix this regression
by tightening the check for when it is safe to skip reading the author
script.

Reported-by: Jonas Kittner <jonas.kittner@ruhr-uni-bochum.de>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agodir: fix directory-matching bug
Derrick Stolee [Tue, 2 Nov 2021 14:40:06 +0000 (10:40 -0400)] 
dir: fix directory-matching bug

This reverts the change from ed49584 (dir: fix pattern matching on dirs,
2021-09-24), which claimed to fix a directory-matching problem without a
test case. It turns out to _create_ a bug, but it is a bit subtle.

The bug would have been revealed by the first of two tests being added to
t0008-ignores.sh. The first uses a pattern "/git/" inside the a/.gitignores
file, which matches against 'a/git/foo' but not 'a/git-foo/bar'. This test
would fail before the revert.

The second test shows what happens if the test instead uses a pattern "git/"
and this test passes both before and after the revert.

The difference in these two cases are due to how
last_matching_pattern_from_list() checks patterns both if they have the
PATTERN_FLAG_MUSTBEDIR and PATTERN_FLAG_NODIR flags. In the case of "git/",
the PATTERN_FLAG_NODIR is also provided, making the change in behavior in
match_pathname() not affect the end result of
last_matching_pattern_from_list().

Reported-by: Glen Choo <chooglen@google.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agol10n: pl: Update translation
Arusekk [Wed, 29 Sep 2021 17:34:21 +0000 (19:34 +0200)] 
l10n: pl: Update translation

Signed-off-by: Arusekk <arek_koz@o2.pl>
2 years agol10n: zh-CN: v2.34.0 round 1
Fangyi Zhou [Tue, 2 Nov 2021 18:04:10 +0000 (18:04 +0000)] 
l10n: zh-CN: v2.34.0 round 1

Reviewed-by: 依云 <lilydjwg@gmail.com>
Reviewed-by: Jiang Xin <worldhello.net@gmail.com>
Signed-off-by: Fangyi Zhou <me@fangyi.io>
2 years agogpg-interface: avoid buffer overrun in parse_ssh_output()
René Scharfe [Sat, 30 Oct 2021 17:07:38 +0000 (19:07 +0200)] 
gpg-interface: avoid buffer overrun in parse_ssh_output()

If the string "key" we found in the output of ssh-keygen happens to be
located at the very end of the line, then going four characters further
leaves us beyond the end of the string.  Explicitly search for the
space after "key" to handle a missing one gracefully.

Signed-off-by: René Scharfe <l.s.r@web.de>
Acked-by: Fabian Stelzer <fs@gigacodes.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agogpg-interface: handle missing " with " gracefully in parse_ssh_output()
René Scharfe [Sat, 30 Oct 2021 17:04:56 +0000 (19:04 +0200)] 
gpg-interface: handle missing " with " gracefully in parse_ssh_output()

If the output of ssh-keygen starts with "Good \"git\" signature for ",
but is not followed by " with " for some reason, then parse_ssh_output()
uses -1 as the len parameter of xmemdupz(), which in turn will end the
program.  Reject the signature and carry on instead in that case.

Signed-off-by: René Scharfe <l.s.r@web.de>
Acked-by: Fabian Stelzer <fs@gigacodes.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agoA few more topics before -rc1
Junio C Hamano [Mon, 1 Nov 2021 20:33:18 +0000 (13:33 -0700)] 
A few more topics before -rc1

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agoMerge branch 'ab/test-lib'
Junio C Hamano [Mon, 1 Nov 2021 20:48:08 +0000 (13:48 -0700)] 
Merge branch 'ab/test-lib'

Test (cosmetic) fix.

* ab/test-lib:
  t5310: drop lib-bundle.sh include

2 years agoMerge branch 'jc/doc-format-patch-clarify-auto-base'
Junio C Hamano [Mon, 1 Nov 2021 20:48:08 +0000 (13:48 -0700)] 
Merge branch 'jc/doc-format-patch-clarify-auto-base'

Rephrase the description of "format-patch --base=auto".

* jc/doc-format-patch-clarify-auto-base:
  format-patch (doc): clarify --base=auto

2 years agoMerge branch 'gc/use-repo-settings'
Junio C Hamano [Mon, 1 Nov 2021 20:48:08 +0000 (13:48 -0700)] 
Merge branch 'gc/use-repo-settings'

It is wrong to read some settings directly from the config
subsystem, as things like feature.experimental can affect their
default values.

* gc/use-repo-settings:
  gc: perform incremental repack when implictly enabled
  fsck: verify multi-pack-index when implictly enabled
  fsck: verify commit graph when implicitly enabled

2 years agoMerge branch 'ab/ignore-replace-while-working-on-commit-graph'
Junio C Hamano [Mon, 1 Nov 2021 20:48:08 +0000 (13:48 -0700)] 
Merge branch 'ab/ignore-replace-while-working-on-commit-graph'

Teach "git commit-graph" command not to allow using replace objects
at all, as we do not use the commit-graph at runtime when we see
object replacement.

* ab/ignore-replace-while-working-on-commit-graph:
  commit-graph: don't consider "replace" objects with "verify"
  commit-graph tests: fix another graph_git_two_modes() helper
  commit-graph tests: fix error-hiding graph_git_two_modes() helper

2 years agoMerge branch 'hm/paint-hits-in-log-grep'
Junio C Hamano [Mon, 1 Nov 2021 20:48:08 +0000 (13:48 -0700)] 
Merge branch 'hm/paint-hits-in-log-grep'

"git log --grep=string --author=name" learns to highlight hits just
like "git grep string" does.

* hm/paint-hits-in-log-grep:
  grep/pcre2: fix an edge case concerning ascii patterns and UTF-8 data
  pretty: colorize pattern matches in commit messages
  grep: refactor next_match() and match_one_pattern() for external use

2 years agol10n: pt_PT: cleaning duplicate translations (#2)
Daniel Santos [Wed, 11 Aug 2021 18:29:16 +0000 (19:29 +0100)] 
l10n: pt_PT: cleaning duplicate translations (#2)

 * cleaning duplicate incorrect translations part 2
 * update translation table
 * unfuzzy all entries
 * typos check in git commands and git flags
 * random line translations
 * updating all phrases #1

Signed-off-by: Daniel Santos <daniel@brilhante.top>
2 years agol10n: po-id for 2.34 (round 1)
Bagas Sanjaya [Mon, 1 Nov 2021 10:25:42 +0000 (17:25 +0700)] 
l10n: po-id for 2.34 (round 1)

Update following components:
  * add-interactive.c
  * add-patch.c
  * diff.c
  * gc.c
  * builtin/bisect--helper.c
  * builtin/commit.c
  * builtin/fetch.c
  * builtin/merge.c
  * builtin/rebase.c
  * builtin/pull.c
  * builtin/push.c
  * builtin/submodule--helper.c

Translate following new components:
  * apply.c
  * bundle.c
  * git.c
  * git-send-email.perl
  * rerere.c
  * builtin/am.c
  * builtin/apply.c
  * builtin/archive.c
  * builtin/bundle.c
  * builtin/cat-file.c
  * builtin/commit-tree.c
  * builtin/count-objects.c
  * builtin/difftool.c
  * builtin/fast-export.c
  * builtin/fast-import.c
  * builtin/fetch-pack.c
  * builtin/fsck.c
  * builtin/gc.c
  * builtin/hash-object.c
  * builtin/ls-files.c
  * builtin/ls-remote.c
  * builtin/ls-tree.c
  * builtin/read-tree.c
  * builtin/receive-pack.c
  * builtin/reflog.c
  * builtin/repack.c
  * builtin/rev-list.c
  * builtin/rev-parse.c
  * builtin/send-pack.c
  * builtin/symbolic-ref.c
  * builtin/update-index.c
  * builtin/update-ref.c
  * builtin/upload-pack.c
  * builtin/verify-pack.c
  * builtin/verify-commit.c
  * builtin/verify-tag.c
  * builtin/write-tree.c

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
2 years agoi18n: fix typos found during l10n for git 2.34.0
Jiang Xin [Mon, 1 Nov 2021 02:14:17 +0000 (10:14 +0800)] 
i18n: fix typos found during l10n for git 2.34.0

Emir and Jean-Noël reported typos in some i18n messages when preparing
l10n for git 2.34.0.

* Fix unstable spelling of config variable "gpg.ssh.defaultKeyCommand"
  which was introduced in commit fd9e226776 (ssh signing: retrieve a
  default key from ssh-agent, 2021-09-10).

* Add missing space between "with" and "--python" which was introduced
  in commit bd0708c7eb (ref-filter: add %(raw) atom, 2021-07-26).

* Fix unmatched single quote in 'builtin/index-pack.c' which was
  introduced in commit 8737dab346 (index-pack: refactor renaming in
  final(), 2021-09-09)

[1] https://github.com/git-l10n/git-po/pull/567

Reported-by: Emir Sarı <bitigchi@me.com>
Reported-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agoMerge branch 'fr_2.34.0_rnd1' of github.com:jnavila/git
Jiang Xin [Mon, 1 Nov 2021 01:49:18 +0000 (09:49 +0800)] 
Merge branch 'fr_2.34.0_rnd1' of github.com:jnavila/git

* 'fr_2.34.0_rnd1' of github.com:jnavila/git:
  l10n: fr v2.34.0 rnd1

2 years agol10n: fr v2.34.0 rnd1
Jean-Noël Avila [Sun, 31 Oct 2021 16:42:35 +0000 (17:42 +0100)] 
l10n: fr v2.34.0 rnd1

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
2 years agol10n: tr: v2.34.0 round 1
Emir Sarı [Sat, 30 Oct 2021 18:07:51 +0000 (21:07 +0300)] 
l10n: tr: v2.34.0 round 1

Signed-off-by: Emir Sarı <bitigchi@me.com>
2 years agol10n: Update Catalan translation
Jordi Mas [Sat, 30 Oct 2021 07:54:25 +0000 (09:54 +0200)] 
l10n: Update Catalan translation

Signed-off-by: Jordi Mas <jmas@softcatala.org>
2 years agol10n: git.pot: v2.34.0 round 1 (134 new, 154 removed)
Jiang Xin [Sat, 30 Oct 2021 01:37:04 +0000 (09:37 +0800)] 
l10n: git.pot: v2.34.0 round 1 (134 new, 154 removed)

Generate po/git.pot from v2.34.0-rc0 for git v2.34.0 l10n round 1.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
2 years agoMerge branch 'master' of github.com:git/git
Jiang Xin [Sat, 30 Oct 2021 01:34:30 +0000 (09:34 +0800)] 
Merge branch 'master' of github.com:git/git

* 'master' of github.com:git/git: (762 commits)
  Git 2.34-rc0
  wrapper: remove xunsetenv()
  log: document --encoding behavior on iconv() failure
  Revert "logmsg_reencode(): warn when iconv() fails"
  completion: fix incorrect bash/zsh string equality check
  add, rm, mv: fix bug that prevents the update of non-sparse dirs
  git-bundle.txt: add missing words and punctuation
  Documentation/Makefile: fix lint-docs mkdir dependency
  submodule: drop unused sm_name parameter from append_fetch_remotes()
  The fifteenth batch
  gitweb.txt: change "folder" to "directory"
  gitignore.txt: change "folder" to "directory"
  git-multi-pack-index.txt: change "folder" to "directory"
  git.txt: fix typo
  archive: describe compression level option
  config.txt: fix typo
  command-list.txt: remove 'sparse-index' from main help
  userdiff-cpp: back out the digit-separators in numbers
  submodule--helper: fix incorrect newlines in an error message
  branch (doc): -m/-c copies config and reflog
  ...

2 years agoGit 2.34-rc0 v2.34.0-rc0
Junio C Hamano [Fri, 29 Oct 2021 22:43:50 +0000 (15:43 -0700)] 
Git 2.34-rc0

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 years agoMerge branch 're/completion-fix-test-equality'
Junio C Hamano [Fri, 29 Oct 2021 22:43:16 +0000 (15:43 -0700)] 
Merge branch 're/completion-fix-test-equality'

Fix long-standing shell syntax error in the completion script.

* re/completion-fix-test-equality:
  completion: fix incorrect bash/zsh string equality check

2 years agoMerge branch 'mt/fix-add-rm-with-sparse-index'
Junio C Hamano [Fri, 29 Oct 2021 22:43:16 +0000 (15:43 -0700)] 
Merge branch 'mt/fix-add-rm-with-sparse-index'

Fix-up to a topic already merged to 'master'.

* mt/fix-add-rm-with-sparse-index:
  add, rm, mv: fix bug that prevents the update of non-sparse dirs

2 years agoMerge branch 'cm/drop-xunsetenv'
Junio C Hamano [Fri, 29 Oct 2021 22:43:15 +0000 (15:43 -0700)] 
Merge branch 'cm/drop-xunsetenv'

Drop a helper function that has never been used since its addition.

* cm/drop-xunsetenv:
  wrapper: remove xunsetenv()

2 years agoMerge branch 'jk/log-warn-on-bogus-encoding'
Junio C Hamano [Fri, 29 Oct 2021 22:43:15 +0000 (15:43 -0700)] 
Merge branch 'jk/log-warn-on-bogus-encoding'

Squelch over-eager warning message added during this cycle.

* jk/log-warn-on-bogus-encoding:
  log: document --encoding behavior on iconv() failure
  Revert "logmsg_reencode(): warn when iconv() fails"

2 years agoMerge branch 'ab/unbundle-progress'
Junio C Hamano [Fri, 29 Oct 2021 22:43:15 +0000 (15:43 -0700)] 
Merge branch 'ab/unbundle-progress'

Doc clarification.

* ab/unbundle-progress:
  git-bundle.txt: add missing words and punctuation

2 years agoMerge branch 'jc/branch-copy-doc'
Junio C Hamano [Fri, 29 Oct 2021 22:43:15 +0000 (15:43 -0700)] 
Merge branch 'jc/branch-copy-doc'

"git branch -c/-m new old" was not described to copy config, which
has been corrected.

* jc/branch-copy-doc:
  branch (doc): -m/-c copies config and reflog

2 years agoMerge branch 'ma/doc-folder-to-directory'
Junio C Hamano [Fri, 29 Oct 2021 22:43:15 +0000 (15:43 -0700)] 
Merge branch 'ma/doc-folder-to-directory'

Consistently use 'directory', not 'folder', to call the filesystem
entity that collects a group of files and, eh, directories.

* ma/doc-folder-to-directory:
  gitweb.txt: change "folder" to "directory"
  gitignore.txt: change "folder" to "directory"
  git-multi-pack-index.txt: change "folder" to "directory"

2 years agoMerge branch 'sg/sparse-index-not-that-common-a-command'
Junio C Hamano [Fri, 29 Oct 2021 22:43:14 +0000 (15:43 -0700)] 
Merge branch 'sg/sparse-index-not-that-common-a-command'

Drop "git sparse-index" from the list of common commands.

* sg/sparse-index-not-that-common-a-command:
  command-list.txt: remove 'sparse-index' from main help

2 years agoMerge branch 'ma/doc-git-version'
Junio C Hamano [Fri, 29 Oct 2021 22:43:14 +0000 (15:43 -0700)] 
Merge branch 'ma/doc-git-version'

Typofix.

* ma/doc-git-version:
  git.txt: fix typo

2 years agoMerge branch 'js/expand-runtime-prefix'
Junio C Hamano [Fri, 29 Oct 2021 22:43:14 +0000 (15:43 -0700)] 
Merge branch 'js/expand-runtime-prefix'

Typofix.

* js/expand-runtime-prefix:
  config.txt: fix typo

2 years agoMerge branch 'bs/archive-doc-compression-level'
Junio C Hamano [Fri, 29 Oct 2021 22:43:14 +0000 (15:43 -0700)] 
Merge branch 'bs/archive-doc-compression-level'

Update "git archive" documentation and give explicit mention on the
compression level for both zip and tar.gz format.

* bs/archive-doc-compression-level:
  archive: describe compression level option

2 years agoMerge branch 'ks/submodule-add-message-fix'
Junio C Hamano [Fri, 29 Oct 2021 22:43:14 +0000 (15:43 -0700)] 
Merge branch 'ks/submodule-add-message-fix'

Message regression fix.

* ks/submodule-add-message-fix:
  submodule: drop unused sm_name parameter from append_fetch_remotes()
  submodule--helper: fix incorrect newlines in an error message

2 years agoMerge branch 'ab/fix-make-lint-docs'
Junio C Hamano [Fri, 29 Oct 2021 22:43:13 +0000 (15:43 -0700)] 
Merge branch 'ab/fix-make-lint-docs'

Hotfix for a topic recently merged to 'master'.

* ab/fix-make-lint-docs:
  Documentation/Makefile: fix lint-docs mkdir dependency

2 years agoMerge branch 'ab/sh-retire-rebase-preserve-merges'
Junio C Hamano [Fri, 29 Oct 2021 22:43:13 +0000 (15:43 -0700)] 
Merge branch 'ab/sh-retire-rebase-preserve-merges'

Code clean-up to remove unused helpers.

* ab/sh-retire-rebase-preserve-merges:
  git-sh-setup: remove messaging supporting --preserve-merges
  git-sh-i18n: remove unused eval_ngettext()

2 years agoMerge branch 'ab/plug-random-leaks'
Junio C Hamano [Fri, 29 Oct 2021 22:43:13 +0000 (15:43 -0700)] 
Merge branch 'ab/plug-random-leaks'

Leakfix.

* ab/plug-random-leaks:
  reflog: free() ref given to us by dwim_log()
  submodule--helper: fix small memory leaks
  clone: fix a memory leak of the "git_dir" variable
  grep: fix a "path_list" memory leak
  grep: use object_array_clear() in cmd_grep()
  grep: prefer "struct grep_opt" over its "void *" equivalent

2 years agoMerge branch 'ab/plug-handle-path-exclude-leak'
Junio C Hamano [Fri, 29 Oct 2021 22:43:12 +0000 (15:43 -0700)] 
Merge branch 'ab/plug-handle-path-exclude-leak'

Leakfix.

* ab/plug-handle-path-exclude-leak:
  config.c: don't leak memory in handle_path_include()

2 years agoMerge branch 'ab/ref-filter-leakfix'
Junio C Hamano [Fri, 29 Oct 2021 22:43:12 +0000 (15:43 -0700)] 
Merge branch 'ab/ref-filter-leakfix'

"git for-each-ref" family of commands were leaking the ref_sorting
instances that hold sorting keys specified by the user; this has
been corrected.

* ab/ref-filter-leakfix:
  branch: use ref_sorting_release()
  ref-filter API user: add and use a ref_sorting_release()
  tag: use a "goto cleanup" pattern, leak less memory

2 years agoMerge branch 'jk/http-push-status-fix'
Junio C Hamano [Fri, 29 Oct 2021 22:43:12 +0000 (15:43 -0700)] 
Merge branch 'jk/http-push-status-fix'

"git push" client talking to an HTTP server did not diagnose the
lack of the final status report from the other side correctly,
which has been corrected.

* jk/http-push-status-fix:
  transport-helper: recognize "expecting report" error from send-pack
  send-pack: complain about "expecting report" with --helper-status