Skip to content

Commit 91645aa

Browse files
committed
This should fix the test failure on travis
1 parent 47d9f13 commit 91645aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git/test/test_remote.py

+5
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@ def test_base(self, rw_repo, remote_repo):
448448
# Verify we can handle prunes when fetching
449449
# stderr lines look like this: x [deleted] (none) -> origin/experiment-2012
450450
# These should just be skipped
451+
# If we don't have a manual checkout, we can't actually assume there are any non-master branches
452+
remote_repo.create_head("myone_for_deletion")
453+
# Get the branch - to be pruned later
454+
origin.fetch()
455+
451456
num_deleted = False
452457
for branch in remote_repo.heads:
453458
if branch.name != 'master':

0 commit comments

Comments
 (0)