Git import with lfs support (#2133)

This adds the possibility to load files managed by lfs to the repository import of git repositories.

Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
This commit is contained in:
René Pfeuffer
2022-10-25 09:14:40 +02:00
committed by GitHub
parent 96ce4cb8e6
commit 54081ccdc6
33 changed files with 673 additions and 117 deletions

View File

@@ -24,7 +24,7 @@
import React, { FC, useState } from "react";
import { useTranslation } from "react-i18next";
import { RepositoryUrlImport } from "@scm-manager/ui-types";
import { InputField, validation } from "@scm-manager/ui-components";
import { Checkbox, InputField, validation } from "@scm-manager/ui-components";
type Props = {
repository: RepositoryUrlImport;
@@ -87,6 +87,15 @@ const ImportFromUrlForm: FC<Props> = ({ repository, onChange, setValid, disabled
disabled={disabled}
/>
</div>
<div className="column is-full px-3">
<Checkbox
label={t("import.skipLfs")}
onChange={skipLfs => onChange({ ...repository, skipLfs })}
checked={repository.skipLfs}
helpText={t("help.skipLfsHelpText")}
disabled={disabled}
/>
</div>
</div>
);
};