summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgit b/dgit
index 4bb0325..c51f75e 100755
--- a/dgit
+++ b/dgit
@@ -4575,7 +4575,7 @@ sub tainted_objects_precheck ($$) {
my $objid = $row->{gitobjid};
my ($gtype, $dummy) = git_cat_file $objid, undef;
next if $gtype eq 'missing';
- if ($gtype ne $row->{gitobjtype}) {
+ if ($row->{gitobjtype} and $gtype ne $row->{gitobjtype}) {
print STDERR f_ <<'END', $objid, $gtype, $row->{gitobjtype};
warning: server says object %s type %s is tainted, but here it has type %s
END