Skip to content

Commit

Permalink
Call builtin ls-tree in git-cat-file -p
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Petr Baudis authored and Junio C Hamano committed May 26, 2006
1 parent add5c8a commit b931aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-cat-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b931aa5

Please sign in to comment.