Re: [PATCH v4 4/6] t7406: Just-cloned checkouts update to the gitlinked hash with 'reset'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 16, 2014, 19:22 UTC
- Message-ID
- <xmqqmwivzq7n.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <09008c79ecc7d4fd92131b4049a25e65db92a30d.1389837412.git.wking@tremily.us>
"W. Trevor King" <wking@tremily.us> writes:
Show 5 quoted lines
> To preserve the local branch, for situations where we're not on a > detached HEAD. > > Signed-off-by: W. Trevor King <wking@tremily.us> > ---
This should be a part of some other change that actually changes how this "git submodule update" checks out the submodule, no?
Show 16 quoted lines
> t/t7406-submodule-update.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh > index 0825a92..5aa9591 100755 > --- a/t/t7406-submodule-update.sh > +++ b/t/t7406-submodule-update.sh > @@ -703,7 +703,7 @@ test_expect_success 'submodule update places git-dir in superprojects git-dir re > git clone super_update_r super_update_r2 && > (cd super_update_r2 && > git submodule update --init --recursive >actual && > - test_i18ngrep "Submodule path .submodule/subsubmodule.: checked out" actual && > + test_i18ngrep "Submodule path .submodule/subsubmodule.: .git reset --hard -q" actual && > (cd submodule/subsubmodule && > git log > ../../expected > ) &&