Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 5de308e

Browse files
committed
sync: clean obsolete mirror repositories
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
1 parent daea021 commit 5de308e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/t0204-sync-mirror.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,15 @@ test_expect_success "project repositories in workspace" '
4646
)
4747
'
4848

49+
test_expect_success "git-repo init with tag" '
50+
(
51+
cd work &&
52+
git-repo init -b refs/tags/v0.2 &&
53+
git-repo sync \
54+
--mock-ssh-info-status 200 \
55+
--mock-ssh-info-response \
56+
"{\"host\":\"ssh.example.com\", \"port\":22, \"type\":\"agit\"}"
57+
)
58+
'
59+
4960
test_done

0 commit comments

Comments
 (0)