From: "SZEDER Gábor" <szeder.dev@gmail.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Jonathan Tan <jonathantanmy@google.com>,
git@vger.kernel.org, gitster@pobox.com, stolee@gmail.com
Subject: Re: [PATCH] sparse-checkout: create leading directory
Date: Sat, 22 Jan 2022 08:58:51 +0100 [thread overview]
Message-ID: <20220122075851.GA1718@szeder.dev> (raw)
In-Reply-To: <220120.86mtjqks1b.gmgdl@evledraar.gmail.com>
On Thu, Jan 20, 2022 at 10:30:03PM +0100, Ævar Arnfjörð Bjarmason wrote:
> > diff --git a/t/t1091-sparse-checkout-builtin.sh b/t/t1091-sparse-checkout-builtin.sh
> > index 42776984fe..dba0737599 100755
> > --- a/t/t1091-sparse-checkout-builtin.sh
> > +++ b/t/t1091-sparse-checkout-builtin.sh
> > @@ -79,6 +79,13 @@ test_expect_success 'git sparse-checkout init' '
> > check_files repo a
> > '
> >
> > +test_expect_success 'git sparse-checkout init in empty repo' '
> > + test_when_finished rm -rf empty-repo blank-template &&
> > + mkdir blank-template &&
> > + git init --template=blank-template empty-repo &&
> > + git -C empty-repo sparse-checkout init
> > +'
> > +
> > test_expect_success 'git sparse-checkout list after init' '
> > git -C repo sparse-checkout list >actual &&
> > cat >expect <<-\EOF &&
>
> You're using an overly verbose way to say "no templates, please". You
> can squash this in, i.e. --template= is an explicitly supported way to
> do that.
It would be even more expressive to use 'git init --no-template', but,
alas, that doesn't work:
$ git init --no-template /tmp/foo
Initialized empty Git repository in /tmp/foo/.git/
$ ls /tmp/foo/.git
branches config description HEAD hooks info objects refs
next prev parent reply other threads:[~2022-01-22 7:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-20 18:55 [PATCH] sparse-checkout: create leading directory Jonathan Tan
2022-01-20 20:26 ` Junio C Hamano
2022-01-20 21:30 ` Ævar Arnfjörð Bjarmason
2022-01-22 7:58 ` SZEDER Gábor [this message]
2022-01-21 17:44 ` [PATCH v2] " Jonathan Tan
2022-01-21 18:48 ` Ævar Arnfjörð Bjarmason
2022-01-22 5:21 ` Elijah Newren
2022-01-22 12:06 ` Ævar Arnfjörð Bjarmason
2022-01-22 17:29 ` Elijah Newren
2022-01-24 11:17 ` Ævar Arnfjörð Bjarmason
2022-01-24 18:25 ` Jonathan Tan
2022-01-25 5:37 ` Elijah Newren
2022-01-22 2:33 ` Elijah Newren
2022-01-24 18:22 ` Jonathan Tan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220122075851.GA1718@szeder.dev \
--to=szeder.dev@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jonathantanmy@google.com \
--cc=stolee@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.