@matheusbsbs / matheus-bagliano / commits / b931aa5a48
Fork 0

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>

Petr Baudis committed May 26, 2006 at 18:59 UTC b931aa5a48f9fb3c26a565d5f19866923f13b692
1 file changed +1 -1
builtin-cat-file.c
+1 -1
@@ -141,7 +141,7 @@ int cmd_cat_file(int argc, const char **argv, char **envp)
141
142 /* custom pretty-print here */
143 if (!strcmp(type, tree_type))
144 - return execl_git_cmd("ls-tree", argv[2], NULL);
144 + return cmd_ls_tree(2, argv + 1, NULL);
145
146 buf = read_sha1_file(sha1, type, &size);
147 if (!buf)