Re: [PATCH v2 2/3] transport.c: introduce core.alternateRefsCommand
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Sep 21, 2018, 20:18 UTC
- Message-ID
- <CAPig+cSx0vxegy+ENtiYgV=x-A=0upFZGuFbW-=cwwknko_f4A@mail.gmail.com>
- In-Reply-To
- <9797f525517142b3494cfbd17a10dfeb3bf586e2.1537555544.git.me@ttaylorr.com>
On Fri, Sep 21, 2018 at 2:47 PM Taylor Blau <me@ttaylorr.com> wrote:
Show 12 quoted lines
> When in a repository containing one or more alternates, Git would
> sometimes like to list references from its alternates. For example, 'git
> receive-pack' list the objects pointed to by alternate references as
> special ".have" references.
> [...]
> Signed-off-by: Taylor Blau <me@ttaylorr.com>
> ---
> diff --git a/t/t5410-receive-pack.sh b/t/t5410-receive-pack.sh
> @@ -0,0 +1,54 @@
> +expect_haves () {
> + printf "%s .have\n" $(git rev-parse $@) >expect
> +}Magic quoting behavior only kicks in when $@ is itself quoted, so this should be:
printf "%s .have\n" $(git rev-parse "$@") >expect
However, as it's unlikely that you need magic quoting in this case, you might get by with plain $* (unquoted).