Skip to content

Commit

Permalink
Check if setup is run inside git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykos153 committed May 27, 2020
1 parent f5acaa0 commit 1e23898
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git_annex_remote_googledrive/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def _get_othertmp() -> os.PathLike:


def setup():
try:
token_file = _get_othertmp() / "git-annex-remote-googledrive.token"
except git.exc.InvalidGitRepositoryError:
print("ERROR: Needs to be run inside a git repository.")
return
print("======")
print("IMPORTANT: Google has started to lockdown their Google Drive API. This might affect access to your remotes.")
print("Until this is settled you'll see a warning about this application not being verified by Google which you need to accept in order to proceed.")
Expand Down

0 comments on commit 1e23898

Please sign in to comment.