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