@@ -426,12 +426,13 @@ struct GitHubInputScheme : GitArchiveInputScheme
426426 return DownloadUrl{parseURL (url), headers};
427427 }
428428
429- void clone (const Settings & settings, const Input & input, const std::filesystem::path & destDir) const override
429+ void clone (const Settings & settings, ref<Store> store, const Input & input, const std::filesystem::path & destDir)
430+ const override
430431 {
431432 auto host = getHost (input);
432433 Input::fromURL (settings, fmt (" git+https://%s/%s/%s.git" , host, getOwner (input), getRepo (input)))
433434 .applyOverrides (input.getRef (), input.getRev ())
434- .clone (settings, destDir);
435+ .clone (settings, store, destDir);
435436 }
436437};
437438
@@ -507,15 +508,16 @@ struct GitLabInputScheme : GitArchiveInputScheme
507508 return DownloadUrl{parseURL (url), headers};
508509 }
509510
510- void clone (const Settings & settings, const Input & input, const std::filesystem::path & destDir) const override
511+ void clone (const Settings & settings, ref<Store> store, const Input & input, const std::filesystem::path & destDir)
512+ const override
511513 {
512514 auto host = maybeGetStrAttr (input.attrs , " host" ).value_or (" gitlab.com" );
513515 // FIXME: get username somewhere
514516 Input::fromURL (
515517 settings,
516518 fmt (" git+https://%s/%s/%s.git" , host, getStrAttr (input.attrs , " owner" ), getStrAttr (input.attrs , " repo" )))
517519 .applyOverrides (input.getRef (), input.getRev ())
518- .clone (settings, destDir);
520+ .clone (settings, store, destDir);
519521 }
520522};
521523
@@ -596,14 +598,15 @@ struct SourceHutInputScheme : GitArchiveInputScheme
596598 return DownloadUrl{parseURL (url), headers};
597599 }
598600
599- void clone (const Settings & settings, const Input & input, const std::filesystem::path & destDir) const override
601+ void clone (const Settings & settings, ref<Store> store, const Input & input, const std::filesystem::path & destDir)
602+ const override
600603 {
601604 auto host = maybeGetStrAttr (input.attrs , " host" ).value_or (" git.sr.ht" );
602605 Input::fromURL (
603606 settings,
604607 fmt (" git+https://%s/%s/%s" , host, getStrAttr (input.attrs , " owner" ), getStrAttr (input.attrs , " repo" )))
605608 .applyOverrides (input.getRef (), input.getRev ())
606- .clone (settings, destDir);
609+ .clone (settings, store, destDir);
607610 }
608611};
609612
0 commit comments