user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 3/4] import: unset GIT_CONFIG with `git config --global'
  2021-01-01  5:47  5% [PATCH 0/4] TEST_RUN_MODE=0 fixes Eric Wong
@ 2021-01-01  5:47  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-01-01  5:47 UTC (permalink / raw)
  To: meta

GIT_CONFIG is set by -convert, and user may have it set
for other reasons.  In either case, it conflicts with
any any attempt to use `git config --global` so we have
to unset it.

This fixes t/multi-mid.t under TEST_RUN_MODE=0
---
 lib/PublicInbox/Import.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index 47a529ff..0aff0e9d 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -21,6 +21,7 @@ use POSIX qw(strftime);
 
 sub default_branch () {
 	state $default_branch = do {
+		delete local $ENV{GIT_CONFIG};
 		my $r = popen_rd([qw(git config --global init.defaultBranch)]);
 		chomp(my $h = <$r> // '');
 		$h eq '' ? 'refs/heads/master' : $h;

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/4] TEST_RUN_MODE=0 fixes
@ 2021-01-01  5:47  5% Eric Wong
  2021-01-01  5:47  7% ` [PATCH 3/4] import: unset GIT_CONFIG with `git config --global' Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-01-01  5:47 UTC (permalink / raw)
  To: meta

Oops :x  I should use TEST_RUN_MODE more often to give
my hands a rest.  None of these surface with the quick
"check-run" target

Eric Wong (4):
  search: do not use $QP_FLAGS until Xapian is loaded
  t/lei: fix TEST_RUN_MODE=0, simplify oneshot fallback test
  import: unset GIT_CONFIG with `git config --global'
  treewide: reduce load_xapian* callsites

 lib/PublicInbox/Import.pm   |  1 +
 lib/PublicInbox/LEI.pm      |  1 -
 lib/PublicInbox/LeiStore.pm |  5 +----
 lib/PublicInbox/Search.pm   |  2 +-
 t/indexlevels-mirror.t      |  4 +---
 t/lei-oneshot.t             | 17 -----------------
 t/lei.t                     | 29 +++++++++++++++++------------
 t/replace.t                 |  3 +--
 8 files changed, 22 insertions(+), 40 deletions(-)

^ permalink raw reply	[relevance 5%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-01-01  5:47  5% [PATCH 0/4] TEST_RUN_MODE=0 fixes Eric Wong
2021-01-01  5:47  7% ` [PATCH 3/4] import: unset GIT_CONFIG with `git config --global' Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).