@@ -457,12 +457,13 @@ struct GitHubInputScheme : GitArchiveInputScheme
457457 return DownloadUrl{parseURL (url), headers};
458458 }
459459
460- void clone (const Settings & settings, const Input & input, const Path & destDir) const override
460+ void clone (const Settings & settings, ref<Store> store, const Input & input, const std::filesystem::path & destDir)
461+ const override
461462 {
462463 auto host = getHost (input);
463464 Input::fromURL (settings, fmt (" git+https://%s/%s/%s.git" , host, getOwner (input), getRepo (input)))
464465 .applyOverrides (input.getRef (), input.getRev ())
465- .clone (settings, destDir);
466+ .clone (settings, store, destDir);
466467 }
467468};
468469
@@ -544,15 +545,16 @@ struct GitLabInputScheme : GitArchiveInputScheme
544545 return DownloadUrl{parseURL (url), headers};
545546 }
546547
547- void clone (const Settings & settings, const Input & input, const Path & destDir) const override
548+ void clone (const Settings & settings, ref<Store> store, const Input & input, const std::filesystem::path & destDir)
549+ const override
548550 {
549551 auto host = maybeGetStrAttr (input.attrs , " host" ).value_or (" gitlab.com" );
550552 // FIXME: get username somewhere
551553 Input::fromURL (
552554 settings,
553555 fmt (" git+https://%s/%s/%s.git" , host, getStrAttr (input.attrs , " owner" ), getStrAttr (input.attrs , " repo" )))
554556 .applyOverrides (input.getRef (), input.getRev ())
555- .clone (settings, destDir);
557+ .clone (settings, store, destDir);
556558 }
557559};
558560
@@ -639,14 +641,15 @@ struct SourceHutInputScheme : GitArchiveInputScheme
639641 return DownloadUrl{parseURL (url), headers};
640642 }
641643
642- void clone (const Settings & settings, const Input & input, const Path & destDir) const override
644+ void clone (const Settings & settings, ref<Store> store, const Input & input, const std::filesystem::path & destDir)
645+ const override
643646 {
644647 auto host = maybeGetStrAttr (input.attrs , " host" ).value_or (" git.sr.ht" );
645648 Input::fromURL (
646649 settings,
647650 fmt (" git+https://%s/%s/%s" , host, getStrAttr (input.attrs , " owner" ), getStrAttr (input.attrs , " repo" )))
648651 .applyOverrides (input.getRef (), input.getRev ())
649- .clone (settings, destDir);
652+ .clone (settings, store, destDir);
650653 }
651654};
652655
0 commit comments