try {
final String ref = "ref: " + pickHEAD(updates) + "\n";
final byte[] bytes = Constants.encode(ref);
dest.writeFile(ROOT_DIR + Constants.HEAD, bytes);
} catch (IOException e) {
throw new TransportException(uri, JGitText.get().cannotCreateHEAD, e);
}
try {
final String config = "[core]\n"
+ "\trepositoryformatversion = 0\n";
final byte[] bytes = Constants.encode(config);
dest.writeFile(ROOT_DIR + Constants.CONFIG, bytes);
} catch (IOException e) {
throw new TransportException(uri, JGitText.get().cannotCreateConfig, e);
}
}