Skip to content

Commit 65e407d

Browse files
feat: enable lfs for git origin
Co-authored-by: Gregory Kramida <[email protected]>
1 parent af2898c commit 65e407d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

java/com/google/copybara/git/GitModule.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,12 @@ public GitModule(Options options) {
307307
+ " fall back to the 'ref' param.\n"
308308
+ "This is intended to help migrating to the new standard of using 'main'"
309309
+ " without breaking users relying on the legacy default."),
310+
@Param(
311+
name = "enable_lfs",
312+
defaultValue = "False",
313+
named = true,
314+
positional = false,
315+
doc = "If true, Large File Storage support is enabled for the origin."),
310316
@Param(
311317
name = "credentials",
312318
allowedTypes = {
@@ -332,6 +338,7 @@ public GitOrigin origin(
332338
Object describeVersion,
333339
Object versionSelector,
334340
Boolean primaryBranchMigration,
341+
Boolean enableLfs,
335342
@Nullable Object credentials,
336343
StarlarkThread thread)
337344
throws EvalException {
@@ -370,7 +377,7 @@ public GitOrigin origin(
370377
? githubPostSubmitApprovalsProvider(
371378
fixedUrl, SkylarkUtil.convertOptionalString(ref), credentialHandler)
372379
: approvalsProvider(url),
373-
/* enableLfs= */ false,
380+
enableLfs,
374381
credentialHandler
375382
);
376383
}

0 commit comments

Comments
 (0)