Re: [PATCH] Teach remote machinery about remotes.default config variable
- From
Mark Levedahl <mlevedahl@gmail.com>
- Date
- Jan 12, 2008, 22:29 UTC
- Message-ID
- <47893F53.2070908@gmail.com>
- In-Reply-To
- <alpine.LSU.1.00.0801122123430.8333@wbgn129.biozentrum.uni-wuerzburg.de>
Johannes Schindelin wrote:
Show 9 quoted lines
> Why is your patch then not about git-submodule? > > And I still fail to see -- even for submodules -- how you begin to tackle > that lookup problem. > > Ciao, > Dscho > >
Because git-submodule is a wrapper around git-fetch and git-clone and git-remote, and those lacked the mechanism to honor the fact that when I said
git clone -o frotz frontz.foo.bar/foo.git
I *defined* the upstream's nickname as "frotz", not "origin", and origin is *not* defined so don't try to use it. As sub-modules are git projects, fixing this in a sub-module necessarily fixes it in any git project.
Mark