From 237d47b9d714fcc2eaedff68c6c0870ef3e0041a Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Thu, 3 Jul 2014 18:46:45 +1200 Subject: Support multiple refspecs in fetch. Git supports fetching many refs at once - support this in GitPython too for more efficient operations when selectively mirroring repositories. --- git/test/test_remote.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git/test/test_remote.py') diff --git a/git/test/test_remote.py b/git/test/test_remote.py index a7f1be22..b1248096 100644 --- a/git/test/test_remote.py +++ b/git/test/test_remote.py @@ -199,6 +199,10 @@ class TestRemote(TestBase): # ... with respec and no target res = fetch_and_test(remote, refspec='master') assert len(res) == 1 + + # ... multiple refspecs + res = fetch_and_test(remote, refspec=['master', 'fred']) + assert len(res) == 1 # add new tag reference rtag = TagReference.create(remote_repo, "1.0-RV_hello.there") -- cgit v1.2.1