Skip to content

Commit 7641557

Browse files
authored
Merge pull request #78 from MetaCell/fix_installation_script
fixed installation script if a different branch is defined in the scr…
2 parents 19fda28 + 9c23e29 commit 7641557

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

utilities/install.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def checkout(folder, default_branch, cwdp):
2626
os.chdir(newPath)
2727
python_git=subprocess.Popen("git branch -a",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
2828
outstd,errstd=python_git.communicate()
29-
if branch in str(outstd):
30-
subprocess.call(['git', 'checkout', branch], cwd='./')
31-
else:
29+
if default_branch in str(outstd):
3230
subprocess.call(['git', 'checkout', default_branch], cwd='./')
31+
else:
32+
subprocess.call(['git', 'checkout', branch], cwd='./')
3333
os.chdir(currentPath)
3434

3535
def main(argv):

0 commit comments

Comments
 (0)