diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-20 20:16:31 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-20 20:16:31 +0100 |
commit | 8e0e315a371cdfc80993a1532f938d56ed7acee4 (patch) | |
tree | 327f4d302ecfb05b390e268fd6b912a1da9d6683 /lib/git/objects/submodule/util.py | |
parent | 8d0aa1ef19e2c3babee458bd4504820f415148e0 (diff) | |
download | gitpython-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.py | 6 |
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 |