Open djarbz opened 3 weeks ago
I agree with the proposal if we also add a switch to retain the previous behaviour of the git-clone module. @johnstcn what do you think?
Re: 1) I think this is fine on an opt-in basis
Re: 2) This could be done as a separate step; there may be cases where this requires specific dependencies that are not yet available inside the workspace?
For me, 2) is out of scope for git-clone.
Looking for thoughts on these two items, I'm willing to submit a PR if we like it.
If the repo already exists, we should fetch updates and perform a ff merge on an opt-in basis. Something like below, I just added this to my dotfiles. Might need to rework the merge logic to select the correct branch.
After successfully cloning, or performing a ff merge, we should run a "setup script" if found to perform repo specific setup. This is currently what I have in my dotfiles, doesn't matter if the script is executable or not.