Pre-commit not working properly with source control #22399
Unanswered
laraib-sidd
asked this question in
Q&A
Replies: 1 comment
-
It looks like your screenshot didn't upload successfully. Is your issue that you're using pre-commit and it isn't working when triggered from the SCM view? If that's the case then #12187 is tracking the request to figure out how to get the SCM view to understand your selected Python environment. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Team,
I'm currently working on enabling pre-commit for my repository. I've encountered an issue where it seems to work as expected when I use the terminal. However, when I utilize the source control panel, I face a problem: after I commit my changes, my previous changes are moved to the staged area, and the changes made after the pre-commit step remain in the changes panel. This situation becomes a bit cumbersome, as I need to manually remove the staged changes and move the pre-commit changes to the stage before I can commit them.
In contrast, the process in the terminal is much smoother. When I commit something, all the hooks are applied automatically, and the commit proceeds seamlessly.
Beta Was this translation helpful? Give feedback.
All reactions