Needed an elaborate dance because Github won't let us download
an archive of a subdirectory.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
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('&&'),