This PR addresses the issue of unnecessary git commands in the updater module. Specifically, it removes the lines of code that call the "git fetch" and "git merge" commands in the modules/updater.py file. These lines were deemed unnecessary and their removal does not affect the functionality of the updater module.
Summary of Changes
Removed the "git fetch" and "git merge" commands from the update function in modules/updater.py.
The update function now directly pulls the latest changes from the repository and resets the local changes, if any.
Tested the update function after the changes to ensure it works as expected.
This PR simplifies the update function and makes the code cleaner and easier to understand.
PR Feedback (click)
I created this PR to address this rule:
"Remove any unused or unnecessary code."
Description
This PR addresses the issue of unnecessary git commands in the updater module. Specifically, it removes the lines of code that call the "git fetch" and "git merge" commands in the modules/updater.py file. These lines were deemed unnecessary and their removal does not affect the functionality of the updater module.
Summary of Changes
This PR simplifies the update function and makes the code cleaner and easier to understand.