summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-03-13 18:00:15 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-03-21 21:12:10 +0100
commitdd243fe1aeb93b12308bb67506eaeeee2a972eb0 (patch)
treede7e31d91bbdfb4ee5976673c1669cb6cd3570ff
parent3a1dc420f6b49e21e0b837a9fb08918fdf1ac9fc (diff)
downloadlibgit2-dd243fe1aeb93b12308bb67506eaeeee2a972eb0.tar.gz
indexer: set an error message on duplicate objects in pack
While this is not even close to a fix, we can at least set an error message so we know which error we are facing. Up to know we just returned an error without a message.
-rw-r--r--src/indexer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/indexer.c b/src/indexer.c
index 92f85c167..f328025fd 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -289,6 +289,7 @@ static int store_object(git_indexer *idx)
k = kh_put(oid, idx->pack->idx_cache, &pentry->sha1, &error);
if (!error) {
git__free(pentry);
+ giterr_set(GITERR_INDEXER, "cannot handle duplicate objects in pack");
goto on_error;
}