Re: [PATCH 3/5] submodule: export sanitized GIT_CONFIG_PARAMETERS
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 28, 2016, 16:51 UTC
- Message-ID
- <alpine.DEB.2.20.1604281840350.9313@virtualbox>
- In-Reply-To
- <20160428152811.GC31063@sigill.intra.peff.net>
Hi,
On Thu, 28 Apr 2016, Jeff King wrote:
Show 15 quoted lines
> On Thu, Apr 28, 2016 at 08:25:29AM -0700, Stefan Beller wrote: > > > > +test_expect_success 'cmdline credential config passes submodule update' ' > > > + # advance the submodule HEAD so that a fetch is required > > > + git commit --allow-empty -m foo && > > > + git push "$HTTPD_DOCUMENT_ROOT_PATH/auth/dumb/repo.git" HEAD && > > > + sha1=$(git rev-parse HEAD) && > > > + git -C super-clone update-index --cacheinfo 160000,$sha1,sub && > > > > The use of update-index seems elegant to me, though different than > > any submodule test I wrote so far. :) > > Yeah, I actually wrestled with finding the shortest recipe to convince > git-submodule to actually call git-fetch. Suggestions welcome if there's > something more canonical.
FWIW that's exactly how I did things in https://github.com/dscho/git/commit/89d0024450b0e6e9997ad9e3d681248bde1bafc0
:-)
Ciao, Dscho