Re: [PATCH] t9400: Use the repository config and nothing else.

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] t9400: Use the repository config and nothing else.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:09

Frank Lichtenheld [off-list ref] writes:
On Fri, May 11, 2007 at 04:35:18PM -0700, Junio Hamano wrote:
quoted
This needs to be fixed, but thanks to that bug, a separate bug
in t9400 test script was discovered.  The test discarded
GIT_CONFIG instead of pointing at the proper one to be used in
the exoprted repository.  This allowed user's .gitconfig and (if
exists) systemwide /etc/gitconfig to affect the outcome of the
test, which is a big no-no.
Shouldn't you also remove the "unset GIT_CONFIG" then?
I didn't test the side of the test that works on the git side,
but I think you are right.

Re: [PATCH] t9400: Use the repository config and nothing else.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:09

Junio C Hamano [off-list ref] writes:
Frank Lichtenheld [off-list ref] writes:
quoted
On Fri, May 11, 2007 at 04:35:18PM -0700, Junio Hamano wrote:
quoted
This needs to be fixed, but thanks to that bug, a separate bug
in t9400 test script was discovered.  The test discarded
GIT_CONFIG instead of pointing at the proper one to be used in
the exoprted repository.  This allowed user's .gitconfig and (if
exists) systemwide /etc/gitconfig to affect the outcome of the
test, which is a big no-no.
Shouldn't you also remove the "unset GIT_CONFIG" then?
I didn't test the side of the test that works on the git side,
but I think you are right.
Actually that is not sufficient, as unsetting means using the
value set in test-lib.sh suitable for usual single-repository
tests.

When you prepare gitcvs.enabled config in the cloned gitcvs.git
repository, you do not want to have GIT_CONFIG=.git/config in
the environment.  As you give GIT_DIR to these two commands, not
having GIT_CONFIG would make them do the right thing.

Re: [PATCH] t9400: Use the repository config and nothing else.

From: Frank Lichtenheld <hidden>
Date: 2016-06-15 22:43:09

On Sat, May 12, 2007 at 10:21:15AM -0700, Junio C Hamano wrote:
Junio C Hamano [off-list ref] writes:
When you prepare gitcvs.enabled config in the cloned gitcvs.git
repository, you do not want to have GIT_CONFIG=.git/config in
the environment.  As you give GIT_DIR to these two commands, not
having GIT_CONFIG would make them do the right thing.
Yeah, which was the reason I unset it in the first place. But
if your concern is not to use other config files it should still
set GIT_CONFIG explicetly for these cases and leave it to the
default for all calls inside the non-bare repository, right?

Gruesse,
-- 
Frank Lichtenheld [off-list ref]
www: http://www.djpig.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help