summaryrefslogtreecommitdiff
path: root/git/objects/submodule/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-21 08:52:23 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-21 08:53:14 +0100
commit47ac37be2e0e14e958ad24dc8cba1fa4b7f78700 (patch)
treec7544cb324a1141628e281828bc4f9bda295ae5c /git/objects/submodule/util.py
parentbb0f3d78d6980a1d43f05cb17a8da57a196a34f3 (diff)
downloadgitpython-47ac37be2e0e14e958ad24dc8cba1fa4b7f78700.tar.gz
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
Diffstat (limited to 'git/objects/submodule/util.py')
-rw-r--r--git/objects/submodule/util.py2
1 files changed, 1 insertions, 1 deletions
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