Re: [PATCH] Fix premature call to git_config() causing t1020-subdirectory to fail

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Barkalow
Date: Tuesday, February 26, 2008 - 5:53 pm

On Tue, 26 Feb 2008, Junio C Hamano wrote:


There's nothing in the documentation to suggest that you can use 
GIT_CONFIG to affect how the old repository is read, or that GIT_CONFIG 
doesn't affect the new repository. Actually, as far as I can tell, the 
configuration of a repository you're cloning (local or remote) doesn't 
matter at all. Note that GIT_DIR and GIT_WORK_TREE refer to the new repo, 
so it would be surprising for GIT_CONFIG to refer to the old one.


By setting GIT_DIR, which also makes everything else work right. (We may 
want to probe the old repository some by setting GIT_DIR to it 
temporarily, but we can just collect information that way, and then set it 
to the new one to configure it and set it up.)

My current design is to collect some initial information, create 
directories, and then set the work tree and git dir. Then we run fetch, 
configure things, etc., in the new context.

I'm not sure why git-clone.sh doesn't just set GIT_DIR to whatever it 
decides the git dir with be, and leave GIT_CONFIG alone (or unset it, if 
it's expected to mean something different).

	-Daniel
*This .sig left intentionally blank*
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Build in clone, Daniel Barkalow, (Mon Feb 25, 2:12 pm)
Re: [RFC] Build in clone, Johan Herland, (Mon Feb 25, 7:21 pm)
Re: [RFC] Build in clone, Johannes Schindelin, (Tue Feb 26, 4:14 am)
Re: [RFC] Build in clone, Johan Herland, (Tue Feb 26, 5:19 am)
Re: [RFC] Build in clone, Johan Herland, (Tue Feb 26, 5:58 am)
Re: [RFC] Build in clone, Johan Herland, (Tue Feb 26, 6:37 am)
Re: [PATCH] Fix premature free of ref_lists while writing ..., Johannes Schindelin, (Tue Feb 26, 8:42 am)
Re: [PATCH] Fix premature call to git_config() causing t10 ..., Johannes Schindelin, (Tue Feb 26, 8:47 am)
Re: [RFC] Build in clone, Daniel Barkalow, (Tue Feb 26, 10:36 am)
Re: [RFC] Build in clone, Kristian , (Tue Feb 26, 11:53 am)
Re: [PATCH] Fix premature call to git_config() causing t10 ..., Johannes Schindelin, (Tue Feb 26, 3:40 pm)
Re: [PATCH] Fix premature call to git_config() causing t10 ..., Daniel Barkalow, (Tue Feb 26, 5:53 pm)
[PATCH] builtin-clone: create remotes/origin/HEAD symref, ..., Johannes Schindelin, (Sat Mar 1, 10:57 pm)
[PATCH, fixed] builtin-clone: create remotes/origin/HEAD s ..., Johannes Schindelin, (Sat Mar 1, 11:25 pm)
[PATCH] builtin clone: support bundles, Johannes Schindelin, (Sun Mar 2, 12:46 am)
Re: [PATCH] builtin clone: support bundles, Daniel Barkalow, (Sun Mar 2, 9:19 am)
Re: [PATCH] builtin clone: support bundles, Daniel Barkalow, (Sun Mar 2, 9:48 am)
Re: [PATCH] builtin clone: support bundles, Johannes Schindelin, (Sun Mar 2, 10:34 am)
Re: [PATCH] builtin clone: support bundles, Junio C Hamano, (Sun Mar 2, 10:50 am)
Re: [PATCH] builtin clone: support bundles, Junio C Hamano, (Sun Mar 2, 10:54 am)
Re: [PATCH] builtin clone: support bundles, Santi Béjar, (Sun Mar 2, 5:04 pm)
Re: [PATCH, fixed] builtin-clone: create remotes/origin/HE ..., Johannes Schindelin, (Mon Mar 3, 10:10 am)
Re: [PATCH, fixed] builtin-clone: create remotes/origin/HE ..., Johannes Schindelin, (Mon Mar 3, 12:55 pm)