Skip to contentSkip to conversation

Call builtin ls-tree in git-cat-file -p

PATCH New Petr Baudis 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Call builtin ls-tree in git-cat-file -p

---

 builtin-cat-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
builtin-cat-file.c +1 -1
index 8ab136e..4d36817 100644
@@ -141,7 +141,7 @@ int cmd_cat_file(int argc, const char **
 
 		/* 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)