From 60fd341ba076942faac96fd6118ca927998ec0d9 Mon Sep 17 00:00:00 2001 From: hugsy Date: Sat, 23 Jan 2021 12:33:04 -0800 Subject: [PATCH] [version] using git-ls-files instead of git-status --- gef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gef.py b/gef.py index 8fd8860cb..95ad235c3 100644 --- a/gef.py +++ b/gef.py @@ -4096,7 +4096,7 @@ def do_invoke(self, argv): if os.access("{}/.git".format(gef_dir), os.X_OK): ver = subprocess.check_output('git log --format="%H" -n 1 HEAD', cwd=gef_dir, shell=True).decode("utf8").strip() - extra = "dirty" if len(subprocess.check_output('git status -s', cwd=gef_dir, shell=True).decode("utf8").strip()) else "clean" + extra = "dirty" if len(subprocess.check_output('git ls-files -m', cwd=gef_dir, shell=True).decode("utf8").strip()) else "clean" gef_print("GEF: rev:{} (Git - {})".format(ver, extra)) else: gef_print("GEF: (Standalone)")