summaryrefslogtreecommitdiff
path: root/lib/git/objects/submodule/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-20 20:16:31 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-20 20:16:31 +0100
commit8e0e315a371cdfc80993a1532f938d56ed7acee4 (patch)
tree327f4d302ecfb05b390e268fd6b912a1da9d6683 /lib/git/objects/submodule/util.py
parent8d0aa1ef19e2c3babee458bd4504820f415148e0 (diff)
downloadgitpython-8e0e315a371cdfc80993a1532f938d56ed7acee4.tar.gz
submodule: Fixed capital error when handling the submodule's branch, which was returned in the submodules super repository, not in the submodule's module
Diffstat (limited to 'lib/git/objects/submodule/util.py')
-rw-r--r--lib/git/objects/submodule/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/objects/submodule/util.py b/lib/git/objects/submodule/util.py
index ab5e345a..9b32807a 100644
--- a/lib/git/objects/submodule/util.py
+++ b/lib/git/objects/submodule/util.py
@@ -34,16 +34,16 @@ def unbare_repo(func):
wrapper.__name__ = func.__name__
return wrapper
-def find_first_remote_branch(remotes, branch):
+def find_first_remote_branch(remotes, branch_name):
"""Find the remote branch matching the name of the given branch or raise InvalidGitRepositoryError"""
for remote in remotes:
try:
- return remote.refs[branch.name]
+ return remote.refs[branch_name]
except IndexError:
continue
# END exception handling
#END for remote
- raise InvalidGitRepositoryError("Didn't find remote branch %r in any of the given remotes", branch)
+ raise InvalidGitRepositoryError("Didn't find remote branch %r in any of the given remotes", branch_name)
#} END utilities