Merge branch 'po/object-id' into next
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index ac4023d30b81cc316393b46572d6808b68728127..24bec41114de0364c7b1ea6e2c692dd94e17eea2 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -4011,7 +4011,7 @@ static void diff_fill_oid_info(struct diff_filespec *one)
                        }
                        if (lstat(one->path, &st) < 0)
                                die_errno("stat '%s'", one->path);
-                       if (index_path(one->oid.hash, one->path, &st, 0))
+                       if (index_path(&one->oid, one->path, &st, 0))
                                die("cannot hash %s", one->path);
                }
        }