Fix git pull issue in download_plugin_from_github function #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Feedback (click)
Description
This PR addresses the issue where the
git pull
command in thedownload_plugin_from_github
function was not working as expected. The function is designed to download a plugin from a GitHub repository and update it if it already exists. However, thegit pull
command was not updating the plugin as expected.Summary of Changes
git pull
command has been replaced withgit pull origin master
to ensure that the command pulls from the master branch of the repository.git pull
command is now executed in the directory of the cloned repository. Previously, thegit pull
command was being executed in the home cache directory, which may not have been the correct directory. Thecd_cmd
variable has been changed tolet cd_cmd = format!("cd {}/{}", path.display(), repo_name.split('/').last().unwrap());
to reflect this change.Fixes #69.
🎉 Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py to be more modular
!💡 To get Sweep to edit this pull request, you can: