diff --git a/sys/src/cmd/git/pack.c b/sys/src/cmd/git/pack.c index c5519c7ab..0d0a1eea4 100644 --- a/sys/src/cmd/git/pack.c +++ b/sys/src/cmd/git/pack.c @@ -1676,7 +1676,8 @@ genpack(int fd, Meta **meta, int nmeta, Hash *h, int odelta) for(i = 0; i < nmeta; i++){ pct = showprogress((i*100)/nmeta, pct); m = meta[i]; - if((m->off = Boffset(bfd)) == -1) + m->off = Boffset(bfd); + if(m->off == -1) goto error; if((o = readobject(m->obj->hash)) == nil) return -1;