Thread (9 messages) flat view 9 messages, 3 authors, 2016-06-15

Re: [PATCHv6] clone --single: limit the fetch refspec to fetched branch

From: Ralf Thielow <hidden>
Date: 2016-06-15 22:54:48

Possibly related (same subject, not in this thread)

On Wed, Sep 19, 2012 at 9:36 AM, Nguyen Thai Ngoc Duy [off-list ref] wrote:
On Wed, Sep 19, 2012 at 2:14 AM, Ralf Thielow [off-list ref] wrote:
quoted
+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
Right. I'll create two tests to replace this one. The first test
verifys that the tag
has been added after cloning. And in the second test, the tag gets updated in
the cloned repository and we verify that the next fetch updates the tag, which
catches my "delivery" tag example.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help