mirror of
https://github.com/git/git.git
synced 2024-10-29 21:37:53 +01:00
git-fsck-cache: don't complain about lacking references when they are all in packs.
We used to not count them at all, which then made us complain that there were no refs.
This commit is contained in:
parent
e27a56a676
commit
659cacf5a9
1 changed files with 3 additions and 1 deletions
|
@ -312,8 +312,10 @@ static int fsck_handle_ref(const char *refname, const unsigned char *sha1)
|
||||||
|
|
||||||
obj = lookup_object(sha1);
|
obj = lookup_object(sha1);
|
||||||
if (!obj) {
|
if (!obj) {
|
||||||
if (!standalone && has_sha1_file(sha1))
|
if (!standalone && has_sha1_file(sha1)) {
|
||||||
|
default_refs++;
|
||||||
return 0; /* it is in a pack */
|
return 0; /* it is in a pack */
|
||||||
|
}
|
||||||
error("%s: invalid sha1 pointer %s", refname, sha1_to_hex(sha1));
|
error("%s: invalid sha1 pointer %s", refname, sha1_to_hex(sha1));
|
||||||
/* We'll continue with the rest despite the error.. */
|
/* We'll continue with the rest despite the error.. */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue