Skip to content

Commit 674377b

Browse files
committed
2.24.1 - Fix branch and plugin update
1 parent 48ba445 commit 674377b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
# v2.24.0
7+
# v2.24.1
8+
9+
### Fixed
10+
11+
Fixed a bug with branches and `plugin update`.
812

913
### Added
1014

cogs/plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ async def plugin_update(self, ctx, *, plugin_name: str):
320320
username, repo, name, branch = self.parse_plugin(plugin_name)
321321

322322
try:
323-
cmd = f"cd plugins/{username}-{repo}-{branch} && git reset --hard origin/master && git fetch --all && git pull"
323+
cmd = f"cd plugins/{username}-{repo}-{branch} && git reset --hard origin/{branch} && git fetch --all && git pull"
324324
cmd = await self.bot.loop.run_in_executor(
325325
None, self._asubprocess_run, cmd
326326
)

0 commit comments

Comments
 (0)