summaryrefslogtreecommitdiff
path: root/git/test/test_remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-30 06:54:49 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-30 06:54:49 +0100
commit91645aa87e79e54a56efb8686eb4ab6c8ba67087 (patch)
tree1d2db215f1684ff77c8a4d6b3359a41f3591b0b4 /git/test/test_remote.py
parent47d9f1321c3a6da68a7909fcb1a66a209066d4c9 (diff)
downloadgitpython-91645aa87e79e54a56efb8686eb4ab6c8ba67087.tar.gz
This should fix the test failure on travis
Diffstat (limited to 'git/test/test_remote.py')
-rw-r--r--git/test/test_remote.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/git/test/test_remote.py b/git/test/test_remote.py
index b7bf9801..2540e49b 100644
--- a/git/test/test_remote.py
+++ b/git/test/test_remote.py
@@ -448,6 +448,11 @@ class TestRemote(TestBase):
# Verify we can handle prunes when fetching
# stderr lines look like this: x [deleted] (none) -> origin/experiment-2012
# These should just be skipped
+ # If we don't have a manual checkout, we can't actually assume there are any non-master branches
+ remote_repo.create_head("myone_for_deletion")
+ # Get the branch - to be pruned later
+ origin.fetch()
+
num_deleted = False
for branch in remote_repo.heads:
if branch.name != 'master':