denolehov / obsidian-git

Backup your Obsidian.md vault with git
MIT License
6.15k stars 252 forks source link

[Feature] Exclude submodule commit pointer from auto-commits #581

Open ParkerRobb opened 10 months ago

ParkerRobb commented 10 months ago

I would like the option to exclude submodule pointers from being auto-committed (or at least from being auto-staged) so that I can manually stage and commit them when ready. Whenever I make a commit to a submodule, the parent repo (because I have auto-commit+push enabled) automatically stages that change and creates a commit that updates the submodule commit pointer.

This becomes a problem when the remote parent repo points to a commit that doesn't exist in the remote submodule repo (because I haven't manually pushed the submodule commits to remote).

Vinzent03 commented 10 months ago

That's strange, because the submodule should be pushed as well, when you push your main repo. And I currently don't know why this doesn't work for you.

ParkerRobb commented 10 months ago

I should have mentioned that I have the "commit and push submodules" switch disabled.

ParkerRobb commented 10 months ago

I manually commit and push my submodules; I would like the ability to manually update the submodule commit the parent repo points to.