2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-23 15:08:24 +00:00

fix: git stash requires user details pre git v2.21

This commit is contained in:
Gavin D'souza 2019-12-27 15:44:03 +05:30
parent 9ede12ecd5
commit a7a8790de6

View File

@ -278,7 +278,7 @@ def update_bench(bench_repo=True, requirements=True):
try:
exec_cmd("git pull", cwd=cwd)
except bench.utils.CommandFailedError:
exec_cmd("git stash", cwd=cwd)
exec_cmd("git -c user.name=bench -c user.email=developers@frappe.io stash", cwd=cwd)
logger.info("Stashing changes made at {}\nUse git stash apply to recover changes after the successful update!".format(cwd))
if requirements: