-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat: enable git diff on submodules #353
Conversation
Fixes isGit method to check whether .git is a folder or file (this is the case on submodules)
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #353 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 29 29
Lines 733 735 +2
=========================================
+ Hits 733 735 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically the new addition looks ok.
I think it could be improved with one or two unit test
// cliHelper.test.js
test('do not throw errors when repo contains git folder', async () => {
...
})
test('do not throw errors when repo contains git file', async () => {
...
})
Hi @hsaraujo! Thanks for this addition. |
Hi @scolladon thanks for the quick feedback.. I will add some unit tests to it. |
fix fs mock for files in sub folders
adds coverage for git repo check on submodules
Hi @scolladon I've added some unit tests to it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Only a few remarks(nit) tag, up to you @hsaraujo to take them or not 😉
Let me know if you want to take care of them or not so I know if I should wait a bit before merging
removes unecessary data setup
Code Climate has analyzed commit 7e654b9 and detected 0 issues on this pull request. View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for this nice contribution
Fixes isGit method to check whether .git is a folder or file (this is the case on submodules)
What does this pull request contain?
Explain your changes
It adds new condition on the isGit method that also checks whether a .git file exists
Where has this been tested?
Locally
Operating System: MacOS Monterey
yarn version: 1.22.19
node version: 18.8.0
git version: 2.37.0
sfdx version: 7.166.1
sgd plugin version: …