Skip to content

Commit

Permalink
ditch the old code, although both are working
Browse files Browse the repository at this point in the history
  • Loading branch information
𝐢𝐁𝐮𝐠 ♦ committed Nov 27, 2018
1 parent 87dc8b5 commit ed8a442
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions gitmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,20 +395,6 @@ def pull_local():
except GitError:
return

@staticmethod
def sync_remote_2():
if GlobalVars.on_windows:
return False, "We don't do Windows"

try:
git('rev-parse', 'temp')
git.branch('-D', 'temp')
except GitError: # local branch 'temp' doesn't exist
pass
git.checkout('-b', 'temp', 'origin/master')
git.branch('-M', 'master')
return True, 'Voilà!'

@staticmethod
def sync_remote():
if GlobalVars.on_windows:
Expand Down

0 comments on commit ed8a442

Please sign in to comment.