diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-12-03 13:34:24 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-12-04 21:52:24 -0800 |
| commit | 4368e40befd308d3055e81f8f6aaaa3fb8fe6407 (patch) | |
| tree | 51ded11f2432fb410e5f5ab69e1154b77c2a9cd0 /contrib/scalar/t/t9099-scalar.sh | |
| parent | 546f822d53aa4b4b35f962d61cdcd1204f9e96e3 (diff) | |
| download | git-4368e40befd308d3055e81f8f6aaaa3fb8fe6407.tar.gz | |
scalar: teach 'clone' to support the --single-branch option
Just like `git clone`, the `scalar clone` command now also offers to
restrict the clone to a single branch.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/scalar/t/t9099-scalar.sh')
| -rwxr-xr-x | contrib/scalar/t/t9099-scalar.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/scalar/t/t9099-scalar.sh b/contrib/scalar/t/t9099-scalar.sh index 984d69e8f7..f60e086d6f 100755 --- a/contrib/scalar/t/t9099-scalar.sh +++ b/contrib/scalar/t/t9099-scalar.sh @@ -45,13 +45,17 @@ test_expect_success 'set up repository to clone' ' test_expect_success 'scalar clone' ' second=$(git rev-parse --verify second:second.t) && - scalar clone "file://$(pwd)" cloned && + scalar clone "file://$(pwd)" cloned --single-branch && ( cd cloned/src && git config --get --global --fixed-value maintenance.repo \ "$(pwd)" && + git for-each-ref --format="%(refname)" refs/remotes/origin/ >actual && + echo "refs/remotes/origin/parallel" >expect && + test_cmp expect actual && + test_path_is_missing 1/2 && test_must_fail git rev-list --missing=print $second && git rev-list $second && |
