From a7a8790de6f18bd2dd572a71ceaf4cb868d81b49 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Fri, 27 Dec 2019 15:44:03 +0530 Subject: [PATCH] fix: git stash requires user details pre git v2.21 --- bench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index ab75dad0..82fe900f 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -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: