@@ -48,16 +48,16 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
48
48
if (argc < 2 || !strcmp (argv [1 ], "-h" ))
49
49
usage (commit_tree_usage );
50
50
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 ]);
53
53
54
54
for (i = 1 ; i < argc ; i ++ ) {
55
55
const char * arg = argv [i ];
56
56
if (!strcmp (arg , "-p" )) {
57
57
unsigned char sha1 [20 ];
58
58
if (argc <= ++ i )
59
59
usage (commit_tree_usage );
60
- if (get_sha1 (argv [i ], sha1 ))
60
+ if (get_sha1_commit (argv [i ], sha1 ))
61
61
die ("Not a valid object name %s" , argv [i ]);
62
62
assert_sha1_type (sha1 , OBJ_COMMIT );
63
63
new_parent (lookup_commit (sha1 ), & parents );
@@ -104,7 +104,7 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix)
104
104
continue ;
105
105
}
106
106
107
- if (get_sha1 (arg , tree_sha1 ))
107
+ if (get_sha1_tree (arg , tree_sha1 ))
108
108
die ("Not a valid object name %s" , arg );
109
109
if (got_tree )
110
110
die ("Cannot give more than one trees" );
0 commit comments