diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-06 12:23:14 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-06 12:23:14 -0800 |
commit | 5410a02ab9e6a1987147724f8ea65e6a077b3832 (patch) | |
tree | e21b1a63136ab205c8796b0a560dacc475d085a5 /git.c | |
parent | 8f321a39257a06db014a3b6ae5dce839821cdb16 (diff) | |
download | git-5410a02ab9e6a1987147724f8ea65e6a077b3832.tar.gz |
git-rev-parse --parseopt
The "parseopt mode" of git-rev-parse does not need to be run
inside a git repository, although the normal mode does.
Most notabily, lack of this fix breaks git-clone script, as
noticed by Nico.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -343,7 +343,7 @@ static void handle_internal_command(int argc, const char **argv) { "rerere", cmd_rerere, RUN_SETUP }, { "reset", cmd_reset, RUN_SETUP }, { "rev-list", cmd_rev_list, RUN_SETUP }, - { "rev-parse", cmd_rev_parse, RUN_SETUP }, + { "rev-parse", cmd_rev_parse }, { "revert", cmd_revert, RUN_SETUP | NEED_WORK_TREE }, { "rm", cmd_rm, RUN_SETUP | NEED_WORK_TREE }, { "runstatus", cmd_runstatus, RUN_SETUP | NEED_WORK_TREE }, |