This ensures the given working tree is used for --dirty and --broken.
Signed-off-by: Sebastian Staudt <[email protected]>
---
builtin/describe.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/builtin/describe.c b/builtin/describe.c
index cc118448ee..ba1a0b199b 100644
--- a/builtin/describe.c
+++ b/builtin/describe.c
@@ -601,6 +601,8 @@ int cmd_describe(int argc, const char **argv,
const char *prefix)
if (!hashmap_get_size(&names) && !always)
die(_("No names found, cannot describe anything."));
+ setup_work_tree();
+
if (argc == 0) {
if (broken) {
struct child_process cp = CHILD_PROCESS_INIT;
--
2.20.1