aboutsummaryrefslogtreecommitdiff
path: root/hash-object.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash-object.c')
-rw-r--r--hash-object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hash-object.c b/hash-object.c
index 846e91a23..37e66779a 100644
--- a/hash-object.c
+++ b/hash-object.c
@@ -8,6 +8,7 @@
#include "blob.h"
#include "quote.h"
#include "parse-options.h"
+#include "exec_cmd.h"
static void hash_fd(int fd, const char *type, int write_object, const char *path)
{
@@ -81,6 +82,8 @@ int main(int argc, const char **argv)
type = blob_type;
+ git_extract_argv0_path(argv[0]);
+
git_config(git_default_config, NULL);
argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0);