Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug fix] Allow commiting of files large than 100mb if handled by LFS #822

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
cleaned up code / removed test logic
  • Loading branch information
TimonGisler committed Dec 3, 2024
commit ce6eb8aeeed265310276a4bd183f21146faff1e6
5 changes: 0 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,11 +807,6 @@ export default class ObsidianGit extends Plugin {
return false;
}

// TODO TGS, remove this, only for testing here (i do not want to commit test files and then be forced to create new test files)
console.log("would commit in main.ts");
this.displayMessage("would commit in main.ts");
return true;

if (changedFiles.length !== 0 || hadConflict) {
let cmtMessage = (commitMessage ??= fromAuto
? this.settings.autoCommitMessage
Expand Down
4 changes: 0 additions & 4 deletions src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ export default class Tools {

//Check for files >100mb on GitHub remote
if (remoteUrl?.includes("github.com")) {
console.log("because remote is github we check for big files");
console.log(files);
const tooBigFiles = files.filter((f) => {
//console.log("checking file", f.vault_path);

const file = this.plugin.app.vault.getAbstractFileByPath(
f.vault_path
);
Expand Down