summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
Diffstat (limited to 'git/test')
-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':