X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=diff.c;h=66057e5d6123c52be9baf8571b3d7a43f6bbaf94;hb=c06818e20a88f58294de0a948a437c7c32c382fe;hp=bfc864d9ccd94215aae9cc899c83e9ad149c590c;hpb=7e4a2a848377241b8fb4f624d1151bbf2f8d5814;p=git.git diff --git a/diff.c b/diff.c index bfc864d9..66057e5d 100644 --- a/diff.c +++ b/diff.c @@ -650,7 +650,7 @@ static void diff_fill_sha1_info(struct diff_filespec *one) if (DIFF_FILE_VALID(one)) { if (!one->sha1_valid) { struct stat st; - if (stat(one->path, &st) < 0) + if (lstat(one->path, &st) < 0) die("stat %s", one->path); if (index_path(one->sha1, one->path, &st, 0)) die("cannot hash %s\n", one->path);