Skip to content

Commit

Permalink
ATTEMPT Config+i10n Setup
Browse files Browse the repository at this point in the history
- I am coding mobile and can't test code
- Add en_us L10N for "auto-gitlfs-install"
- Tweak Preflight to launch gitlfs install on config true
- Add config enum AUTO_GITLFS_INSTALL
  • Loading branch information
Helcostr committed Jul 28, 2024
1 parent 0f5f0f3 commit 65e59ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/
public enum FastbackConfigKey implements GitConfigKey {

AUTO_GITLFS_INSTALL("auto-gitlfs-install",true),
AUTOBACK_ACTION("autoback-action", null),
AUTOBACK_WAIT_MINUTES("autoback-wait", 0),
BROADCAST_ENABLED("broadcast-enabled", true),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ static void doPreflight(RepoImpl repo) throws IOException, ProcessException, Git
writeResourceToFile("world/gitattributes-jgit", targetPath);
}
}
updateNativeLfsInstallation(repo);
if (config.getBoolean(AUTO_GITLFS_INSTALL))
updateNativeLfsInstallation(repo);
}

// ======================================================================
Expand Down
1 change: 1 addition & 0 deletions common/src/main/resources/assets/fastback/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"fastback.help.command.remote-restore" : "Restore a remote snapshot.",
"fastback.help.command.restore" : "Restore a backup snapshot.",
"fastback.help.command.set" : "Change configuration settings.",
"fastback.help.command.set-auto-gitlfs-install": "Allows for auto resolution of gitlfs install.",
"fastback.help.command.set-autoback-action" : "Set an action to perform during auto-backups.",
"fastback.help.command.set-autoback-wait" : "Set the minimum number of minutes to wait between auto-backups.",
"fastback.help.command.set-remote" : "Set the url for remote backups.",
Expand Down

0 comments on commit 65e59ba

Please sign in to comment.