@@ -48,16 +48,16 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
4848 if (argc < 2 || !strcmp (argv [1 ], "-h" ))
4949 usage (commit_tree_usage );
5050
51- if (get_sha1 (argv [1 ], tree_sha1 ))
52- die ("Not a valid object name %s" , argv [1 ]);
51+ if (get_sha1_tree (argv [1 ], tree_sha1 ))
52+ die ("Not a valid tree object name %s" , argv [1 ]);
5353
5454 for (i = 1 ; i < argc ; i ++ ) {
5555 const char * arg = argv [i ];
5656 if (!strcmp (arg , "-p" )) {
5757 unsigned char sha1 [20 ];
5858 if (argc <= ++ i )
5959 usage (commit_tree_usage );
60- if (get_sha1 (argv [i ], sha1 ))
60+ if (get_sha1_commit (argv [i ], sha1 ))
6161 die ("Not a valid object name %s" , argv [i ]);
6262 assert_sha1_type (sha1 , OBJ_COMMIT );
6363 new_parent (lookup_commit (sha1 ), & parents );
@@ -104,7 +104,7 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
104104 continue ;
105105 }
106106
107- if (get_sha1 (arg , tree_sha1 ))
107+ if (get_sha1_tree (arg , tree_sha1 ))
108108 die ("Not a valid object name %s" , arg );
109109 if (got_tree )
110110 die ("Cannot give more than one trees" );
0 commit comments