<br/>In addition, arv-copy requires git when copying to a git repository. Please make sure that git is installed and available.
-Use the following command to check if git is available.
-<notextile><pre><code>~$ <span class="userinput">git --help</span></code></pre></notextile>
-
-Use the following command to install git.
-<notextile><pre><code>~$ <span class="userinput">sudo apt-get install git</span></code></pre></notextile>
-
{% include 'notebox_end' %}
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.
# to both repositories.
#
def copy_git_repo(src_git_repo, src, dst, dst_git_repo, script_version, args):
- # Check if git is available
- try:
- arvados.util.run_command(['git', '--help'])
- except:
- raise Exception('git command is not available. Please ensure git is installed.')
-
# Identify the fetch and push URLs for the git repositories.
r = src.repositories().list(
filters=[['name', '=', src_git_repo]]).execute(num_retries=args.retries)