From 061047ccb6d9453928fcd3baf94b18fad792f1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Fri, 5 Aug 2011 18:20:00 +0200 Subject: [PATCH] Rethrow pack entry offset error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Martín Nieto --- src/pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pack.c b/src/pack.c index c84f007bc..f0ebf9d37 100644 --- a/src/pack.c +++ b/src/pack.c @@ -475,7 +475,7 @@ off_t get_delta_base( } else if (type == GIT_OBJ_REF_DELTA) { /* The base entry _must_ be in the same pack */ if (pack_entry_find_offset(&base_offset, &unused, p, (git_oid *)base_info, GIT_OID_HEXSZ) < GIT_SUCCESS) - return git__throw(GIT_EPACKCORRUPTED, "Base entry delta is not in the same pack"); + return git__rethrow(GIT_EPACKCORRUPTED, "Base entry delta is not in the same pack"); *curpos += 20; } else return 0;