projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
svn improt needs SVN::Core 1.2.1 or better
[git.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index
fe374c6
..
895c1fa
100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-20,6
+20,8
@@
#endif
#endif
#endif
#endif
+const unsigned char null_sha1[20] = { 0, };
+
static unsigned int sha1_file_open_flag = O_NOATIME;
static unsigned hexval(char c)
static unsigned int sha1_file_open_flag = O_NOATIME;
static unsigned hexval(char c)
@@
-871,7
+873,8
@@
void packed_object_info_detail(struct pack_entry *e,
strcpy(type, "tag");
break;
default:
strcpy(type, "tag");
break;
default:
- die("corrupted pack file");
+ die("corrupted pack file %s containing object of kind %d",
+ p->pack_name, kind);
}
*store_size = 0; /* notyet */
}
}
*store_size = 0; /* notyet */
}
@@
-910,7
+913,8
@@
static int packed_object_info(struct pack_entry *entry,
strcpy(type, "tag");
break;
default:
strcpy(type, "tag");
break;
default:
- die("corrupted pack file");
+ die("corrupted pack file %s containing object of kind %d",
+ p->pack_name, kind);
}
if (sizep)
*sizep = size;
}
if (sizep)
*sizep = size;
@@
-1010,7
+1014,7
@@
static void *unpack_entry(struct pack_entry *entry,
retval = unpack_entry_gently(entry, type, sizep);
unuse_packed_git(p);
if (!retval)
retval = unpack_entry_gently(entry, type, sizep);
unuse_packed_git(p);
if (!retval)
- die("corrupted pack file
"
);
+ die("corrupted pack file
%s", p->pack_name
);
return retval;
}
return retval;
}