]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm.py: fix pulling cephadm from git.ceph.com 49389/head
authorAdam King <adking@redhat.com>
Mon, 12 Dec 2022 13:58:39 +0000 (08:58 -0500)
committerAdam King <adking@redhat.com>
Mon, 12 Dec 2022 17:40:10 +0000 (12:40 -0500)
The old way of using the git archive doesn't seem
to work anymore so trying another approach

Was getting "fatal: operation not supported by protocol"
when trying the git archive

Fixes: https://tracker.ceph.com/issues/58222
Signed-off-by: Adam King <adking@redhat.com>
qa/tasks/cephadm.py

index 73b0f08115f41c61ee35c1c1b1e04b0efbad6a48..94fcddc97509a420f4185ca207823e0000da05ac 100644 (file)
@@ -179,14 +179,15 @@ def _fetch_cephadm_from_github(ctx, config, ref):
     else:
         ctx.cluster.run(
             args=[
-                'git', 'archive',
-                '--remote=' + git_url,
-                ref,
-                'src/cephadm/cephadm',
-                run.Raw('|'),
-                'tar', '-xO', 'src/cephadm/cephadm',
+                'git', 'clone', git_url, 'testrepo',
+                run.Raw('&&'),
+                'cd', 'testrepo',
+                run.Raw('&&'),
+                'git', 'show', f'{ref}:src/cephadm/cephadm',
                 run.Raw('>'),
                 ctx.cephadm,
+                run.Raw('&&'),
+                'ls', '-l', ctx.cephadm,
             ],
         )
     # sanity-check the resulting file and set executable bit