1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

remove unused git function is_current_branch (looks like it returns always True anyway which might be wrong)

This commit is contained in:
Benjamin Schwarze 2013-05-31 22:27:56 +02:00
parent 80bebc1806
commit a0c89e742e

View file

@ -183,16 +183,6 @@ def is_local_branch(git_path, module, dest, branch):
else:
return False
def is_current_branch(git_path, module, dest, branch):
branches = get_branches(git_path, module, dest)
for b in branches:
if b.startswith('* '):
cur_branch = b
if branch == cur_branch or '* %s' % branch == cur_branch:
return True
else:
return True
def is_not_a_branch(git_path, module, dest):
branches = get_branches(git_path, module, dest)
for b in branches: