fix detection of ambiguous object ID match with pack files
diff --git a/lib/repository.c b/lib/repository.c
index 14de200..db26cff 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -948,7 +948,7 @@ match_packed_object(struct got_object_id **unique_id,
}
} else {
err = got_error(GOT_ERR_AMBIGUOUS_ID);
- break;
+ goto done;
}
}
}