X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=hash-object.c;h=9455dd0709aeb81436ef2e3e36422578d66ce8e7;hb=09ba7b2d9fc9142a2195082dd0e74c8161b6b744;hp=ebb3bedb074202a29e2356845012bd1ffae0dc19;hpb=c9a88deede2e3438a70be7df233678d6a0fece74;p=git.git diff --git a/hash-object.c b/hash-object.c index ebb3bedb0..9455dd070 100644 --- a/hash-object.c +++ b/hash-object.c @@ -29,7 +29,7 @@ static void hash_object(const char *path, const char *type, int write_object, int fd; fd = open(path, O_RDONLY); if (fd < 0) - die("Cannot open %s", path); + die_errno("Cannot open '%s'", path); hash_fd(fd, type, write_object, vpath); } @@ -84,7 +84,8 @@ int main(int argc, const char **argv) git_extract_argv0_path(argv[0]); - argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0); + argc = parse_options(argc, argv, NULL, hash_object_options, + hash_object_usage, 0); if (write_object) { prefix = setup_git_directory();