Make update-cache be explicit about failed open() when doing
[gitweb.git] / unpack-file.c
index 6ff3d51c182627f42b104932ecea9b95d6225a5d..b7988c5575fabd57100d25742a1d0578bcc181d7 100644 (file)
@@ -26,7 +26,7 @@ int main(int argc, char **argv)
 {
        unsigned char sha1[20];
 
-       if (argc != 2 || get_sha1_hex(argv[1], sha1))
+       if (argc != 2 || get_sha1(argv[1], sha1))
                usage("unpack-file.c <sha1>");
 
        puts(create_temp_file(sha1));