Skip to content

Commit

Permalink
Use git checkout instead of git switch for better compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Aug 6, 2024
1 parent faf462a commit f81fa1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cm/cmind/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def pull(self, alias, url = '', branch = '', checkout = '', console = False, des
extra_flag = ' ' if checkout_only else ' -b '

if branch != '':
cmd = 'git fetch && git switch ' + branch
cmd = 'git fetch && git checkout ' + branch

if checkout!='':
cmd += ' ' + checkout
Expand Down

0 comments on commit f81fa1b

Please sign in to comment.