summaryrefslogtreecommitdiff
path: root/diff-stages.c
diff options
context:
space:
mode:
Diffstat (limited to 'diff-stages.c')
-rw-r--r--diff-stages.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/diff-stages.c b/diff-stages.c
index 85170b2..9968d6c 100644
--- a/diff-stages.c
+++ b/diff-stages.c
@@ -55,6 +55,9 @@ int main(int ac, const char **av)
{
int stage1, stage2;
+ setup_git_directory();
+
+ git_config(git_diff_config);
read_cache();
diff_setup(&diff_options);
while (1 < ac && av[1][0] == '-') {