Commit 061047ccb6d9453928fcd3baf94b18fad792f1a0

Carlos Martín Nieto 2011-08-05T18:20:00

Rethrow pack entry offset error Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/pack.c b/src/pack.c
index c84f007..f0ebf9d 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;