Whip post 1.5.3.3 maintenance series into shape.
[gitweb.git] / t / t5400-send-pack.sh
index 6c8767e1df76323f406df56b39d4ba4596e0ab97..57c6397be116bb93af2ccffb0cee2d4bb3901ca4 100755 (executable)
@@ -113,4 +113,14 @@ test_expect_success \
        ! git diff .git/refs/heads/master victim/.git/refs/heads/master
 '
 
+test_expect_success \
+       'pushing does not include non-head refs' '
+       mkdir parent && cd parent &&
+       git-init && touch file && git-add file && git-commit -m add &&
+       cd .. &&
+       git-clone parent child && cd child && git-push --all &&
+       cd ../parent &&
+       git-branch -a >branches && ! grep -q origin/master branches
+'
+
 test_done