diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-05-31 18:02:23 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-05-31 18:02:23 -0700 |
commit | 1160919f8197c8b1ad45f0c5bcf5cef7051202d9 (patch) | |
tree | ecd6f75b3122dd2dbf7f07ab7933a393847e6e48 /sys/src/cmd/git/ref.c | |
parent | c29748226982e52d19dfd206a680b97ed35c44f6 (diff) |
git/send: pick minimal delta set correctly (thanks igor)
We weren't giving all objects to the twixt() function, and
it was making bad life choices -- gambling, smoking, drinking,
and packing in too much data.
With more information, it doesn't do the last.
Diffstat (limited to 'sys/src/cmd/git/ref.c')
-rw-r--r-- | sys/src/cmd/git/ref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/git/ref.c b/sys/src/cmd/git/ref.c index 80d79bdfc..5f67dacb0 100644 --- a/sys/src/cmd/git/ref.c +++ b/sys/src/cmd/git/ref.c @@ -294,11 +294,11 @@ findtwixt(Hash *head, int nhead, Hash *tail, int ntail, Object ***res, int *nres if(hasheq(&tail[i], &Zhash)) continue; if((o = readobject(tail[i])) == nil){ - fprint(2, "warning: %H does not point at commit\n", o->hash); werrstr("read tail %H: %r", tail[i]); return -1; } if(o->type != GCommit){ + fprint(2, "warning: %H does not point at commit\n", o->hash); unref(o); continue; } |