From: Tommi Virtanen Date: Fri, 16 Sep 2011 18:32:15 +0000 (-0700) Subject: workunit: Fetch source from github. X-Git-Tag: 1.1.0~2793 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0d5dbfa27eb9d586beeef750ca3ad1752853fe09;p=teuthology.git 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 --- 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('&&'),