From: Junio C Hamano Date: Wed, 28 May 2008 06:33:22 +0000 (-0700) Subject: Git::cat_blob: allow using an empty blob to fix git-svn breakage X-Git-Tag: v1.5.6-rc1~35 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d683a0e00cd4734b4fab704baef1ee76205722be?hp=d683a0e00cd4734b4fab704baef1ee76205722be Git::cat_blob: allow using an empty blob to fix git-svn breakage Recent "git-svn optimization" series introduced Git::cat_blob() subroutine whose interface was broken in that it returned the size of the blob but signalled an error by returning 0. You can never use an empty blob with such an interface. This fixes the interface to return a negative value to signal an error. Reported by Björn Steinbrink. Signed-off-by: Junio C Hamano ---