awacke1 commited on
Commit
b199293
1 Parent(s): c3ad907

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -64,8 +64,9 @@ def push_to_github(local_path, repo, github_token):
64
  # 🚀 Pushing code to GitHub. Blast off!
65
  repo_url = f"https://{github_token}@github.com/{repo.full_name}.git"
66
  local_repo = Repo(local_path)
67
-
68
- if 'origin' in [remote.name for remote.local_repo.remotes]:
 
69
  origin = local_repo.remote('origin')
70
  origin.set_url(repo_url)
71
  else:
 
64
  # 🚀 Pushing code to GitHub. Blast off!
65
  repo_url = f"https://{github_token}@github.com/{repo.full_name}.git"
66
  local_repo = Repo(local_path)
67
+ if 'origin' in [remote.name for remote in local_repo.remotes]:
68
+
69
+ #if 'origin' in [remote.name for remote.local_repo.remotes]: --error
70
  origin = local_repo.remote('origin')
71
  origin.set_url(repo_url)
72
  else: