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

Add more robust work directory parsing #511

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

SymbionicNigel
Copy link

@SymbionicNigel SymbionicNigel commented Dec 18, 2024

What does this PR do?

This PR removed the requirement for the user to provide the -w and the associated file path when dealing with git submodules. As described in the issue I had created (#501) where git operations were not working correctly even though the --yadm-data, --yadm-dir, --yadm-repo arguments were being supplied to yadm, I see this as a way in which yadm can take a step towards Staying out of the way and letting Git do what it’s good at by relying less on the manual setting of the core.worktree git config value and requiring fewer configuration values past the three arguments I mentioned above.

What issues does this PR fix or reference?

#501

Previous Behavior

Previously yadm would require the user to supply the -w <path to workdir> argument with the yadm init command when working with submodules, otherwise git commands would not function. This still works with that method of initialization.

New Behavior

The new behavior would allow for the user to just initialize the repo through git and not yadm. Either method would work now.

Have tests been written for this change?

No, but I can add them if requested.

Have these commits been signed with GnuPG?

Yes.


Please review yadm's Contributing Guide for best practices.

@SymbionicNigel SymbionicNigel changed the base branch from master to develop December 18, 2024 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant