aboutsummaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJon Seymour <jon.seymour@gmail.com>2011-08-09 12:11:54 +1000
committerJunio C Hamano <gitster@pobox.com>2011-08-09 10:26:18 -0700
commit24c512803dadf61b2f7f8965735b7c3a03f6147e (patch)
tree5b2169e0f60b9f6565b7e3c25c46b1d63931007a /git.c
parent43b8ff4b149bb3e17271608380b4a73c2e290b77 (diff)
downloadgit-24c512803dadf61b2f7f8965735b7c3a03f6147e.tar.gz
git-24c512803dadf61b2f7f8965735b7c3a03f6147e.tar.xz
bisect: add support for bisecting bare repositories
This enhances the support for bisecting history in bare repositories. The "git bisect" command no longer needs to be run inside a repository with a working tree; it defaults to --no-checkout when run in a bare repository. Two tests are included to demonstrate this behaviour. Suggested-by: Junio C Hamano <gitster@pobox.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 8828c18d6..7fdcab293 100644
--- a/git.c
+++ b/git.c
@@ -320,7 +320,7 @@ static void handle_internal_command(int argc, const char **argv)
{ "annotate", cmd_annotate, RUN_SETUP },
{ "apply", cmd_apply, RUN_SETUP_GENTLY },
{ "archive", cmd_archive },
- { "bisect--helper", cmd_bisect__helper, RUN_SETUP | NEED_WORK_TREE },
+ { "bisect--helper", cmd_bisect__helper, RUN_SETUP },
{ "blame", cmd_blame, RUN_SETUP },
{ "branch", cmd_branch, RUN_SETUP },
{ "bundle", cmd_bundle, RUN_SETUP_GENTLY },