From 91645aa87e79e54a56efb8686eb4ab6c8ba67087 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 30 Jan 2015 06:54:49 +0100 Subject: This should fix the test failure on travis --- git/test/test_remote.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git/test/test_remote.py') 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': -- cgit v1.2.1