<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git, branch v2.35.1</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=v2.35.1</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=v2.35.1'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2022-01-29T00:48:42Z</updated>
<entry>
<title>Git 2.35.1</title>
<updated>2022-01-29T00:48:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-01-29T00:48:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a'/>
<id>urn:sha1:4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'en/keep-cwd' into maint</title>
<updated>2022-01-29T00:45:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-01-29T00:45:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=f120b65cd41c0e93432af1a36c82fd3a8d39ccd4'/>
<id>urn:sha1:f120b65cd41c0e93432af1a36c82fd3a8d39ccd4</id>
<content type='text'>
Fix a regression in 2.35 that roke the use of "rebase" and "stash"
in a secondary worktree.

* en/keep-cwd:
  sequencer, stash: fix running from worktree subdir
</content>
</entry>
<entry>
<title>sequencer, stash: fix running from worktree subdir</title>
<updated>2022-01-26T20:01:54Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2022-01-26T01:43:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ff5b7913f0af62c26682b0376d0aa2d7f5d74b2e'/>
<id>urn:sha1:ff5b7913f0af62c26682b0376d0aa2d7f5d74b2e</id>
<content type='text'>
In commits bc3ae46b42 ("rebase: do not attempt to remove
startup_info-&gt;original_cwd", 2021-12-09) and 0fce211ccc ("stash: do not
attempt to remove startup_info-&gt;original_cwd", 2021-12-09), we wanted to
allow the subprocess to know which directory the parent process was
running from, so that the subprocess could protect it.  However...

When run from a non-main worktree, setup_git_directory() will note
that the discovered git directory
(/PATH/TO/.git/worktree/non-main-worktree) does not match
DEFAULT_GIT_DIR_ENVIRONMENT (see setup_discovered_git_dir()), and
decide to set GIT_DIR in the environment.  This matters because...

Whenever git is run with the GIT_DIR environment variable set, and
GIT_WORK_TREE not set, it presumes that '.' is the working tree.  So...

This combination results in the subcommand being very confused about
the working tree.  Fix it by also setting the GIT_WORK_TREE environment
variable along with setting cmd.dir.

A possibly more involved fix we could consider for later would be to
make setup.c set GIT_WORK_TREE whenever (a) it discovers both the git
directory and the working tree and (b) it decides to set GIT_DIR in the
environment.  I did not attempt that here as such would be too big of a
change for a 2.35.1 release.

Test-case-by: Glen Choo &lt;chooglen@google.com&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Git 2.35</title>
<updated>2022-01-24T17:25:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-01-24T17:25:25Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=89bece5c8c96f0b962cfc89e63f82d603fd60bed'/>
<id>urn:sha1:89bece5c8c96f0b962cfc89e63f82d603fd60bed</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ab/checkout-branch-info-leakfix'</title>
<updated>2022-01-24T17:14:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-01-24T17:14:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c6e19e47a60c0174f805db8e1624db38ff889523'/>
<id>urn:sha1:c6e19e47a60c0174f805db8e1624db38ff889523</id>
<content type='text'>
We added an unrelated sanity checking that leads to a BUG() while
plugging a leak, which triggered in a repository with symrefs in
the local branch namespace that point at a ref outside.  Partially
revert the change to avoid triggering the BUG().

* ab/checkout-branch-info-leakfix:
  checkout: avoid BUG() when hitting a broken repository
</content>
</entry>
<entry>
<title>Merge tag 'l10n-2.35.0-rnd2' of git://github.com/git-l10n/git-po</title>
<updated>2022-01-24T17:09:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-01-24T17:09:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=7ea759cf9b8a4789e6fb3d12b618b3b9a005765a'/>
<id>urn:sha1:7ea759cf9b8a4789e6fb3d12b618b3b9a005765a</id>
<content type='text'>
l10n-2.35.0-rnd2

* tag 'l10n-2.35.0-rnd2' of git://github.com/git-l10n/git-po:
  l10n: Update Catalan translation
  l10n: zh_TW: v2.35.0 round 2 (0 untranslated)
  l10n: Update Catalan translation
  l10n: de.po: Update German translation
  l10n: de.po: Fix translation for "'%s' is aliased to '%s'"
  l10n: po-id for 2.35 (round 2)
  l10n: Update Catalan translation
  l10n: vi(5195t): Update for v2.35.0 round 2
  l10n: batch update to fix typo in branch.c
  l10n: git.pot: v2.35.0 round 2 (1 new, 1 removed)
  l10n: bg.po: Updated Bulgarian translation (5195t)
  l10n: zh_CN: v2.35.0 round 1
  l10n: fr: v2.35.0 round 1
  l10n: zh_TW: v2.35.0 round 1 (1 fuzzy)
  l10n: po-id for 2.35 (round 1)
  l10n: sv.po: Update Swedish translation (5196t0f0u)
  l10n: sv.po: Fix typo
  l10n: tr: v2.35.0 round 1
  l10n: git.pot: v2.35.0 round 1 (126 new, 142 removed)
</content>
</entry>
<entry>
<title>l10n: Update Catalan translation</title>
<updated>2022-01-23T08:40:52Z</updated>
<author>
<name>Jordi Mas</name>
<email>jmas@softcatala.org</email>
</author>
<published>2022-01-23T08:40:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=9e2b35d7643cc26f61094d80c8d5f512eb467981'/>
<id>urn:sha1:9e2b35d7643cc26f61094d80c8d5f512eb467981</id>
<content type='text'>
Signed-off-by: Jordi Mas &lt;jmas@softcatala.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'l10n/zh_TW/220113' of github.com:l10n-tw/git-po</title>
<updated>2022-01-22T08:27:41Z</updated>
<author>
<name>Jiang Xin</name>
<email>worldhello.net@gmail.com</email>
</author>
<published>2022-01-22T08:27:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0fff4ea34686467f653d4ffd3c2377cc81d5c146'/>
<id>urn:sha1:0fff4ea34686467f653d4ffd3c2377cc81d5c146</id>
<content type='text'>
* 'l10n/zh_TW/220113' of github.com:l10n-tw/git-po:
  l10n: zh_TW: v2.35.0 round 2 (0 untranslated)
  l10n: zh_TW: v2.35.0 round 1 (1 fuzzy)
</content>
</entry>
<entry>
<title>checkout: avoid BUG() when hitting a broken repository</title>
<updated>2022-01-22T01:04:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-01-22T00:58:30Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=519947b69a9ea1461d5f5afc762823835295b3b2'/>
<id>urn:sha1:519947b69a9ea1461d5f5afc762823835295b3b2</id>
<content type='text'>
When 9081a421 (checkout: fix "branch info" memory leaks, 2021-11-16)
cleaned up existing memory leaks, we added an unrelated sanity check
to ensure that a local branch is truly local and not a symref to
elsewhere that dies with BUG() otherwise.  This was misguided in two
ways.  First of all, such a tightening did not belong to a leak-fix
patch.  And the condition it detected was *not* a bug in our program
but a problem in user data, where warning() or die() would have been
more appropriate.

As the condition is not fatal (the result of computing the local
branch name in the code that is involved in the faulty check is only
used as a textual label for the commit), let's revert the code to
the original state, i.e. strip "refs/heads/" to compute the local
branch name if possible, and otherwise leave it NULL.  The consumer
of the information in merge_working_tree() is prepared to see NULL
in there and act accordingly.

cf. https://bugzilla.redhat.com/show_bug.cgi?id=2042920

Reported-by: Petr Šplíchal &lt;psplicha@redhat.com&gt;
Reported-by: Todd Zullinger &lt;tmz@pobox.com&gt;
Helped-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>l10n: zh_TW: v2.35.0 round 2 (0 untranslated)</title>
<updated>2022-01-21T23:10:43Z</updated>
<author>
<name>Yi-Jyun Pan</name>
<email>pan93412@gmail.com</email>
</author>
<published>2022-01-21T23:06:36Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=87953304da781b344fd07582b97ae099c978172e'/>
<id>urn:sha1:87953304da781b344fd07582b97ae099c978172e</id>
<content type='text'>
Used 1 translation from zh_CN. Thanks to zh_CN translation team!

Signed-off-by: Yi-Jyun Pan &lt;pan93412@gmail.com&gt;
</content>
</entry>
</feed>
