mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
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:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user