summaryrefslogtreecommitdiff
path: root/t/t5555-http-smart-common.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t5555-http-smart-common.sh')
-rwxr-xr-xt/t5555-http-smart-common.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t5555-http-smart-common.sh b/t/t5555-http-smart-common.sh
index b813099..49faf5e 100755
--- a/t/t5555-http-smart-common.sh
+++ b/t/t5555-http-smart-common.sh
@@ -8,6 +8,20 @@ test_expect_success 'setup' '
test_commit --no-tag initial
'
+test_expect_success 'git upload-pack --http-backend-info-refs and --advertise-refs are aliased' '
+ git upload-pack --http-backend-info-refs . >expected 2>err.expected &&
+ git upload-pack --advertise-refs . >actual 2>err.actual &&
+ test_cmp err.expected err.actual &&
+ test_cmp expected actual
+'
+
+test_expect_success 'git receive-pack --http-backend-info-refs and --advertise-refs are aliased' '
+ git receive-pack --http-backend-info-refs . >expected 2>err.expected &&
+ git receive-pack --advertise-refs . >actual 2>err.actual &&
+ test_cmp err.expected err.actual &&
+ test_cmp expected actual
+'
+
test_expect_success 'git upload-pack --advertise-refs' '
cat >expect <<-EOF &&
$(git rev-parse HEAD) HEAD