Ralf Thielow <ralf.thie...@gmail.com> writes:

> + ...
> +     # explicit --single with tag
> +     git clone --single-branch --branch two . dir_tag &&
> +
> +     # advance both "master" and "side" branches
> +     git checkout side &&
> +     echo five >file &&
> +     git commit -a -m five &&
> +     git checkout master &&
> +     echo six >file &&
> +     git commit -a -m six

Don't we also want to cover your "delivery" tag scenario by updating
the tag "two" before letting the clones fetch in the following test?

> + ...
> +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
> +'
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to