diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-07-30 17:27:41 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-07-30 17:27:41 +0000 |
commit | 919f1ae4f46a9626e281a588bc0c16bf93c804d0 (patch) | |
tree | 214ea318afb76342c85671621ddcba68f85de8b0 /sys/src/cmd/git/ref.c | |
parent | 50a98145e6c07f4e3ec588eb040334f531b5fe7c (diff) |
git: fix zero hash check crash in git/serve
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 fd732c944..8dc5e6735 100644 --- a/sys/src/cmd/git/ref.c +++ b/sys/src/cmd/git/ref.c @@ -142,7 +142,7 @@ paint(Hash *head, int nhead, Hash *tail, int ntail, Object ***res, int *nres, in unref(o); } for(i = 0; i < ntail; i++){ - if(hasheq(&head[i], &Zhash)) + if(hasheq(&tail[i], &Zhash)) continue; if((o = readobject(tail[i])) == nil){ werrstr("read tail %H: %r", tail[i]); |