[ARVADOS] updated: 3282d76febc482aab302a44bf594bcf9591ff868

git at public.curoverse.com git at public.curoverse.com
Tue Jul 28 12:05:34 EDT 2015


Summary of changes:
 doc/_includes/_arv_copy_expectations.liquid | 11 ++++++++++-
 sdk/python/arvados/commands/arv_copy.py     |  6 ++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

       via  3282d76febc482aab302a44bf594bcf9591ff868 (commit)
      from  76c38b6bf63fa7329abb135a40710cbdbea18d44 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 3282d76febc482aab302a44bf594bcf9591ff868
Author: radhika <radhika at curoverse.com>
Date:   Tue Jul 28 12:05:12 2015 -0400

    6657: check git is installed in arv-copy

diff --git a/doc/_includes/_arv_copy_expectations.liquid b/doc/_includes/_arv_copy_expectations.liquid
index 6db78e8..50362de 100644
--- a/doc/_includes/_arv_copy_expectations.liquid
+++ b/doc/_includes/_arv_copy_expectations.liquid
@@ -1,3 +1,12 @@
 {% include 'notebox_begin' %}
-This part of the tutorial assumes that you have a working git repository in the destination cluster. If you do not have a repository created, you can follow the "Adding a new repository":{{site.baseurl}}/user/tutorials/add-new-repository.html page. We will use the *tutorial* repository created in that page as the example.
+As stated above, arv-copy is recursive by default and requires a working git repository in the destination cluster. If you do not have a repository created, you can follow the "Adding a new repository":{{site.baseurl}}/user/tutorials/add-new-repository.html page. We will use the *tutorial* repository created in that page as the example.
+
+<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' %}
diff --git a/sdk/python/arvados/commands/arv_copy.py b/sdk/python/arvados/commands/arv_copy.py
index 1d10b04..5e48bc4 100755
--- a/sdk/python/arvados/commands/arv_copy.py
+++ b/sdk/python/arvados/commands/arv_copy.py
@@ -589,6 +589,12 @@ def copy_collection(obj_uuid, src, dst, args):
 #    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)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list