summaryrefslogtreecommitdiff
path: root/git/test/test_remote.py
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2014-07-03 18:46:45 +1200
committerRobert Collins <rbtcollins@hp.com>2014-07-03 18:46:45 +1200
commit237d47b9d714fcc2eaedff68c6c0870ef3e0041a (patch)
treeda1bc140cf349500fefa7497df7169dc98cba01d /git/test/test_remote.py
parent5ae512e69f37e37431239c8da6ffa48c75684f87 (diff)
downloadgitpython-237d47b9d714fcc2eaedff68c6c0870ef3e0041a.tar.gz
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.
Diffstat (limited to 'git/test/test_remote.py')
-rw-r--r--git/test/test_remote.py4
1 files changed, 4 insertions, 0 deletions
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")