Skip to content

Commit

Permalink
fix: git stash requires user details pre git v2.21
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Dec 27, 2019
1 parent 9ede12e commit a7a8790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/utils.py
Expand Up @@ -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:
Expand Down

0 comments on commit a7a8790

Please sign in to comment.