Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Sep 19, 2012, 07:36 UTC
- Message-ID
- <CACsJy8AjCC2C2dGt+G0V1FZWVJg1f=QGetTJdB4-JVEs8f4DBw@mail.gmail.com>
- In-Reply-To
- <1347995660-9956-1-git-send-email-ralf.thielow@gmail.com>
On Wed, Sep 19, 2012 at 2:14 AM, Ralf Thielow <ralf.thielow@gmail.com> wrote:
Show 8 quoted lines
> +test_expect_success '--single-branch with explicit --branch tag' ' > + ( > + cd dir_tag && git fetch && > + git for-each-ref refs/tags >../actual > + ) && > + git for-each-ref refs/tags >expect && > + test_cmp expect actual > +'
We should have added the tag right after cloning, not until the first git-fetch. Not that I object how you do it in this patch. Just a note to myself that if I'm going to do that, I'll need to update this test to update the change tag before fetching and verify the tag is updated after git-fetch.
-- Duy