housekeep(git): remove deprecated "setup-repo" command

Marked as deprecated about 6 years ago.
Time to bury it.

Issue report: #428

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-02-08 17:48:09 +01:00
parent 68813abcf0
commit b1a9efd552
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
3 changed files with 10 additions and 14 deletions

View file

@ -56,11 +56,16 @@ test_expect_success 'Test IP address bans.' '
SSH_CLIENT="$SSH_CLIENT_ORIG"
'
test_expect_success 'Test setup-repo and list-repos.' '
SSH_ORIGINAL_COMMAND="setup-repo foobar" AUR_USER=user \
cover "$GIT_SERVE" 2>&1 &&
SSH_ORIGINAL_COMMAND="setup-repo foobar2" AUR_USER=tu \
cover "$GIT_SERVE" 2>&1 &&
test_expect_success 'Test list-repos.' '
# insert our test packages
echo "INSERT INTO PackageBases (Name, SubmittedTS, \
ModifiedTS, SubmitterUID, MaintainerUID, FlaggerComment) \
VALUES (\"foobar\", 0, 0, 1, 1, \"\");" | \
sqlite3 aur.db
echo "INSERT INTO PackageBases (Name, SubmittedTS, \
ModifiedTS, SubmitterUID, MaintainerUID, FlaggerComment) \
VALUES (\"foobar2\", 0, 0, 2, 2, \"\");" | \
sqlite3 aur.db
cat >expected <<-EOF &&
*foobar
EOF