mirror of
https://github.com/git/git.git
synced 2024-10-30 22:07:53 +01:00
Call builtin ls-tree in git-cat-file -p
Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
add5c8a562
commit
b931aa5a48
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue