summaryrefslogtreecommitdiff
path: root/t/t5511-refspec.sh
diff options
context:
space:
mode:
authorLibravatar Dmitry Potapov <dpotapov@gmail.com>2010-05-11 01:38:17 +0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-05-18 21:46:36 -0700
commit08bda2085cc095863888bb4bb7a73960a9a379fd (patch)
treeaa76877c238015bbd12b801064bd66ea5248b5fd /t/t5511-refspec.sh
parentGIT-VERSION-GEN: restrict tags used (diff)
downloadtgif-08bda2085cc095863888bb4bb7a73960a9a379fd.tar.xz
hash_object: correction for zero length file
The check whether size is zero was done after if size <= SMALL_FILE_SIZE, as result, zero size case was never triggered. Instead zero length file was treated as any other small file. This did not caused any problem, but if we have a special case for size equal to zero, it is better to make it work and avoid redundant malloc(). Signed-off-by: Dmitry Potapov <dpotapov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5511-refspec.sh')
0 files changed, 0 insertions, 0 deletions