X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=checkout-cache.c;h=8d5e4cd148f6111ab7e0bfb7f9142693e08f66bd;hb=6cbd72f8d5d794112eab68f7e7222c9a0c5d6587;hp=fa7864590fb70b755ebb1c9a257d33ca2bd6656d;hpb=2de381f919829aec1e35d6c7cc33519295dcd053;p=git.git diff --git a/checkout-cache.c b/checkout-cache.c index fa786459..8d5e4cd1 100644 --- a/checkout-cache.c +++ b/checkout-cache.c @@ -77,7 +77,7 @@ static int write_entry(struct cache_entry *ce) return error("checkout-cache: unable to read sha1 file of %s (%s)", ce->name, sha1_to_hex(ce->sha1)); } - fd = create_file(ce->name, ce->st_mode); + fd = create_file(ce->name, ntohl(ce->ce_mode)); if (fd < 0) { free(new); return error("checkout-cache: unable to create %s (%s)",