Using an if statement to create counter balancing online

By looking back at a previous experiment I have created it seems to appear whenever you have a loop to determine the conditions file you are calling in.

I made it so that the conditions file was no longer variable according to the if statement (as a test run) so just the file name conditionsAB.xlsx. Then I get a new error.

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1325, in onPavloviaSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1416, in project
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 1068, in getProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 1049, in getGitRoot
File “subprocess.pyc”, line 356, in check_output
File “subprocess.pyc”, line 438, in run
subprocess.CalledProcessError: Command ‘[‘git’, ‘branch’, ‘—show-current’]’ returned non-zero exit status 129.