From 0d5dbfa27eb9d586beeef750ca3ad1752853fe09 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Fri, 16 Sep 2011 11:32:15 -0700 Subject: [PATCH] workunit: Fetch source from github. Needed an elaborate dance because Github won't let us download an archive of a subdirectory. Signed-off-by: Tommi Virtanen --- teuthology/task/workunit.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/teuthology/task/workunit.py b/teuthology/task/workunit.py index 5ef90c4125..fdacd71cac 100644 --- a/teuthology/task/workunit.py +++ b/teuthology/task/workunit.py @@ -107,18 +107,22 @@ def _run_tests(ctx, role, tests): args=[ 'mkdir', '--', srcdir, run.Raw('&&'), - 'git', - 'archive', - '--format=tar', - '--remote=git://ceph.newdream.net/git/ceph.git', - '--', + 'wget', + '-q', + '-O-', # TODO make branch/tag/sha1 used configurable - 'HEAD:qa/workunits/', + 'https://github.com/NewDreamNetwork/ceph/tarball/HEAD', run.Raw('|'), 'tar', '-C', srcdir, '-x', + '-z', '-f-', + '--wildcards', + '--no-wildcards-match-slash', + '--strip-components=3', + '--', + '*/qa/workunits/', run.Raw('&&'), 'cd', '--', srcdir, run.Raw('&&'), -- 2.39.5