The current portion of installer_template.py that is used if the choice category is 'Git' is only for installing Git, but the 'Git' category is also used when installing Git completion and the Git branch prompt. These categories need to be fixed by making them two categories, or somehow handling this differently in the script.
{% if choice.category == 'git' %}
elif url is None:
call(['sudo', 'xcode-select', '--install'])
raw_input('Press Enter to continue when finished installing Xcode.')
else:
# This will prompt user for sudo password
call(['sudo', 'apt-get', 'install', 'git'])
{% endif %}
The current portion of installer_template.py that is used if the choice category is 'Git' is only for installing Git, but the 'Git' category is also used when installing Git completion and the Git branch prompt. These categories need to be fixed by making them two categories, or somehow handling this differently in the script.
{% if choice.category == 'git' %} elif url is None: call(['sudo', 'xcode-select', '--install']) raw_input('Press Enter to continue when finished installing Xcode.') else: # This will prompt user for sudo password call(['sudo', 'apt-get', 'install', 'git']) {% endif %}