summaryrefslogtreecommitdiff
path: root/lib/git/objects/submodule/util.py
diff options
context:
space:
mode:
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