From: Tim Pierce Date: Mon, 15 Sep 2014 17:58:44 +0000 (-0400) Subject: 3699: back out attempts to change tempfile.tempdir X-Git-Tag: 1.1.0~2067^2~28 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/e09e57378e5f98235e472a35c18a3e3a2bac97fb 3699: back out attempts to change tempfile.tempdir Too many error conditions -- if the disk is full, have the user change it manually with TMPDIR=/scratch --- diff --git a/sdk/python/arvados/commands/copy.py b/sdk/python/arvados/commands/copy.py index d8ce4f4cda..3fd54a0d92 100755 --- a/sdk/python/arvados/commands/copy.py +++ b/sdk/python/arvados/commands/copy.py @@ -336,11 +336,6 @@ 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.tempdir = '/scratch/{}'.format(getpass.getuser()) - os.mkdir(tempfile.tempdir) tmprepo = tempfile.mkdtemp() dst_branch = re.sub(r'\W+', '_', src_git_url)