From: Petr Baudis Date: Fri, 26 May 2006 16:59:17 +0000 (+0200) Subject: Call builtin ls-tree in git-cat-file -p X-Git-Tag: v1.4.0-rc1~60 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b931aa5a48f9fb3c26a565d5f19866923f13b692;p=git.git Call builtin ls-tree in git-cat-file -p Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- diff --git a/builtin-cat-file.c b/builtin-cat-file.c index 8ab136e9..4d36817e 100644 --- a/builtin-cat-file.c +++ b/builtin-cat-file.c @@ -141,7 +141,7 @@ int cmd_cat_file(int argc, const char **argv, char **envp) /* custom pretty-print here */ if (!strcmp(type, tree_type)) - return execl_git_cmd("ls-tree", argv[2], NULL); + return cmd_ls_tree(2, argv + 1, NULL); buf = read_sha1_file(sha1, type, &size); if (!buf)