Skip to content

Commit

Permalink
formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
jfischer committed Apr 23, 2020
1 parent 22e84ec commit 33cb71e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions dataworkspaces/dws.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,13 @@ def git(ctx, role, name, branch, read_only, export, imported, path):
)
if imported:
read_only = True
if path.startswith('git@') or path.startswith('https://'):
raise click.BadOptionUsage(message="It looks like you tried to specify a git URL (%s)."%path +
" Currently, git resources only accept a local path."+
" Try cloning your repository and then pasing the local path to that repository.",
option_name='path')
if path.startswith("git@") or path.startswith("https://"):
raise click.BadOptionUsage(
message="It looks like you tried to specify a git URL (%s)." % path
+ " Currently, git resources only accept a local path."
+ " Try cloning your repository and then pasing the local path to that repository.",
option_name="path",
)

path = abspath(expanduser(path))
workspace = find_and_load_workspace(ns.batch, ns.verbose, ns.workspace_dir)
Expand Down

0 comments on commit 33cb71e

Please sign in to comment.