[PATCH 2/2] Setup working tree in describe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This ensures the given working tree is used for --dirty and --broken.

Signed-off-by: Sebastian Staudt <koraktor@xxxxxxxxx>
---
 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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux