X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e73222a8d0c18b159ae3d8b53b54474650bdda16..0c447acb37a221a096249c6a9cfad4255c08f575:/sdk/python/arvados/commands/arv_copy.py?ds=sidebyside diff --git a/sdk/python/arvados/commands/arv_copy.py b/sdk/python/arvados/commands/arv_copy.py index 1d10b04272..e7eb5a9e28 100755 --- a/sdk/python/arvados/commands/arv_copy.py +++ b/sdk/python/arvados/commands/arv_copy.py @@ -212,6 +212,12 @@ def copy_pipeline_instance(pi_uuid, src, dst, args): pi = src.pipeline_instances().get(uuid=pi_uuid).execute(num_retries=args.retries) if args.recursive: + # Check if git is available + try: + arvados.util.run_command(['git', '--help']) + except: + abort('git command is not available. Please ensure git is installed.') + if not args.dst_git_repo: abort('--dst-git-repo is required when copying a pipeline recursively.') # Copy the pipeline template and save the copied template.