From: Roland Hieber Date: Sun, 20 Jun 2021 21:38:37 GMT Subject: [PATCH] bisect: allow to run from subdirectories Message-ID: <20210620213836.10771-1-rhi@pengutronix.de> Currently, calling 'git bisect' from a directory other than the top level of a repository only comes up with an error message: You need to run this command from the toplevel of the working tree. After a glance through the bisect code, there seems to be nothing that relies on the current working directory, and a few hours of bisect usage also didn't turn up any problems. Set the appropriate flag for git-sh-setup to remove the error message. Signed-off-by: Roland Hieber --- git-bisect.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/git-bisect.sh b/git-bisect.sh index 6a7afaea8da0..20ba0ee7c18a 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -32,6 +32,7 @@ git bisect run ... Please use "git help bisect" to get the full man page.' OPTIONS_SPEC= +SUBDIRECTORY_OK=1 . git-sh-setup _x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]' -- 2.29.2