From 8e0e315a371cdfc80993a1532f938d56ed7acee4 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 20 Nov 2010 20:16:31 +0100 Subject: submodule: Fixed capital error when handling the submodule's branch, which was returned in the submodules super repository, not in the submodule's module --- lib/git/objects/submodule/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/git/objects/submodule/util.py') 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 -- cgit v1.2.1