Re: [PATCH] Teach remote machinery about remotes.default config variable
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 14, 2008, 04:42 UTC
- Message-ID
- <7vabn9m30a.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <478AD5A0.50900@gmail.com>
Mark Levedahl <mlevedahl@gmail.com> writes:
> ... if what > we need to fetch from is in fact not origin (even though the master > project knows what server to access), submodule update in fact doesn't > even work ...
This is an interesting point.
Perhaps git-submodule.sh::modules_update should use $url it obtains from the configuration in the upper level when running git-fetch in the submodule.
If you view the problem this way, your earlier "git fetch while the HEAD is detached always uses 'origin'" may turn out to be a non-issue.
Which again brings us back to Johannes's earlier point. If the issue is about submodule, maybe what needs to be fixes is in git-submodule, and not the defaulting to 'origin' git-fetch and friends do.