MAARK/code-config

.git folder placement on AEM project

Closed this issue · 2 comments

.git folder placement is not found if command is ran on ui.frontend folder

Soluition:
Add a step where it asks if uses the default folder or a custom one

Instead of asking the user I think it would be better to try to guess the location of the .git folder by checking first the current location and then going up one level at a time until it's found. There should also be a stop condition, it could be until it reaches the top level or just try a number of levels up (e.g. 3 parent levels).

yep, sounds like a good solution