protected String addArchive(GitCommitJar commit)
throws IOException
{
for (String hash : commit.getCommitList()) {
GitJarStreamSource gitSource = new GitJarStreamSource(hash, commit);
if (! exists(hash)) {
InputStream is = gitSource.openInputStream();
try {
writeRawGitFile(hash, is);
} catch (IOException e) {
throw new IOException(commit.findPath(hash) + ":" + hash + ": " + e.getMessage(), e);