diff options
author | Jeff King <peff@peff.net> | 2007-09-18 04:15:34 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-18 14:00:20 -0700 |
commit | 5c633a4cbeb95fc86c9b3e6126749cf34a2691b5 (patch) | |
tree | 3029bdd14f39d6a825ac60124d19e7e83c9b51a4 /t/t5400-send-pack.sh | |
parent | bf1ee636780f3fcaf358827168fa8a0e26c598e2 (diff) | |
download | git-5c633a4cbeb95fc86c9b3e6126749cf34a2691b5.tar.gz git-5c633a4cbeb95fc86c9b3e6126749cf34a2691b5.tar.xz |
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-x | t/t5400-send-pack.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh index 6c8767e1d..57c6397be 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 |