From 47ac37be2e0e14e958ad24dc8cba1fa4b7f78700 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 21 Jan 2015 08:52:23 +0100 Subject: Assured that branch changes are properly handled. Previously we could try to remove the branch we are on. Of course, we have a test-case elaborate enough to verify we don't destroy changes in submodules accidentally. Therefore I am confident that this implementation is correct. Fixes #49 --- git/objects/submodule/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/objects/submodule/util.py') diff --git a/git/objects/submodule/util.py b/git/objects/submodule/util.py index 5604dec7..8b9873fc 100644 --- a/git/objects/submodule/util.py +++ b/git/objects/submodule/util.py @@ -49,7 +49,7 @@ def find_first_remote_branch(remotes, branch_name): continue # END exception handling # END for remote - raise InvalidGitRepositoryError("Didn't find remote branch %r in any of the given remotes", branch_name) + raise InvalidGitRepositoryError("Didn't find remote branch '%r' in any of the given remotes" % branch_name) #} END utilities -- cgit v1.2.1