mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[Downloader] Fast-forward only on git pull
This commit is contained in:
parent
438d9f5f60
commit
7e96e5ad69
@ -569,7 +569,7 @@ class Downloader:
|
|||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise UpdateError("Unable to determine old commit hash")
|
raise UpdateError("Unable to determine old commit hash")
|
||||||
oldhash = p.stdout.decode().strip()
|
oldhash = p.stdout.decode().strip()
|
||||||
p = run(["git", "-C", dd + name, "pull", "-q"])
|
p = run(["git", "-C", dd + name, "pull", "-q", "--ff-only"])
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise UpdateError("Error pulling updates")
|
raise UpdateError("Error pulling updates")
|
||||||
p = run(rpcmd, stdout=PIPE)
|
p = run(rpcmd, stdout=PIPE)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user