summaryrefslogtreecommitdiff
path: root/t/t5400-send-pack.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-09-18 08:15:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-18 21:00:20 (GMT)
commit5c633a4cbeb95fc86c9b3e6126749cf34a2691b5 (patch)
tree3029bdd14f39d6a825ac60124d19e7e83c9b51a4 /t/t5400-send-pack.sh
parentbf1ee636780f3fcaf358827168fa8a0e26c598e2 (diff)
downloadgit-5c633a4cbeb95fc86c9b3e6126749cf34a2691b5.zip
git-5c633a4cbeb95fc86c9b3e6126749cf34a2691b5.tar.gz
git-5c633a4cbeb95fc86c9b3e6126749cf34a2691b5.tar.bz2
git-push: documentation and tests for pushing only branches
Commit 098e711e caused git-push to match only branches when considering which refs to push. This patch updates the documentation accordingly and adds a test for this behavior. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5400-send-pack.sh')
-rwxr-xr-xt/t5400-send-pack.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index 6c8767e..57c6397 100755
--- a/t/t5400-send-pack.sh
+++ b/t/t5400-send-pack.sh
@@ -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