From: Sebastian Staudt Date: Sat, 26 Jan 2019 20:49:50 GMT Subject: [PATCH v2 2/3] Setup working tree in describe Message-ID: <20190126204951.42455-2-koraktor@gmail.com> In-Reply-To: <20190126204951.42455-1-koraktor@gmail.com> This ensures the given working tree is used for --dirty. The implementation of --broken uses diff-index which calls setup_work_tree() itself. Signed-off-by: Sebastian Staudt --- builtin/describe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/describe.c b/builtin/describe.c index cc118448ee..b5b7abdc8f 100644 --- a/builtin/describe.c +++ b/builtin/describe.c @@ -629,6 +629,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix) struct argv_array args = ARGV_ARRAY_INIT; int fd, result; + setup_work_tree(); read_cache(); refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, NULL, NULL, NULL); -- 2.20.1