[ARVADOS] updated: 044d3d29476a8e59821ca4ebb7144f6c6b0b24ce
git at public.curoverse.com
git at public.curoverse.com
Mon Sep 15 13:29:13 EDT 2014
Summary of changes:
sdk/python/arvados/commands/copy.py | 6 ++++++
1 file changed, 6 insertions(+)
via 044d3d29476a8e59821ca4ebb7144f6c6b0b24ce (commit)
from b23bcfdc041fa9459d2beb423eea35e3ad34e64a (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 044d3d29476a8e59821ca4ebb7144f6c6b0b24ce
Author: Tim Pierce <twp at curoverse.com>
Date: Mon Sep 15 13:28:42 2014 -0400
3699: use /scratch instead of /tmp for git copies
diff --git a/sdk/python/arvados/commands/copy.py b/sdk/python/arvados/commands/copy.py
index a3ead8a..da4e074 100755
--- a/sdk/python/arvados/commands/copy.py
+++ b/sdk/python/arvados/commands/copy.py
@@ -17,6 +17,7 @@
# arv-copy will issue an error.
import argparse
+import getpass
import os
import re
import sets
@@ -335,6 +336,11 @@ def copy_git_repo(src_git_repo, src, dst, dst_git_repo):
dst_git_push_url = r['items'][0]['push_url']
logger.debug('dst_git_push_url: {}'.format(dst_git_push_url))
+ # If there is a /scratch partition available, attempt to use it
+ # to check out the git repo (which can be quite large)
+ if os.path.exists('/scratch'):
+ tempfile.tmpdir = '/scratch/{}'.format(getpass.getuser())
+ os.mkdir(tempfile.tempdir)
tmprepo = tempfile.mkdtemp()
dst_branch = re.sub(r'\W+', '_', src_git_url)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list