X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=cache-tree.c;h=d91743775dfbe98d99d8ab25a270af320c8b984e;hb=232d4537667e32230c855777444abbe732536ed9;hp=16a65dfac11eccc68acb4a0ed472761f3f84f9c4;hpb=3eb1e8ee1f968e9bb5ade30f17d1f49396b4c81c;p=git.git diff --git a/cache-tree.c b/cache-tree.c index 16a65dfac..d91743775 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -329,7 +329,8 @@ static int update_one(struct cache_tree *it, entlen = pathlen - baselen; } if (mode != S_IFGITLINK && !missing_ok && !has_sha1_file(sha1)) - return error("invalid object %s", sha1_to_hex(sha1)); + return error("invalid object %06o %s for '%.*s'", + mode, sha1_to_hex(sha1), entlen+baselen, path); if (ce->ce_flags & CE_REMOVE) continue; /* entry being removed */