RemoteRefUpdate update = new RemoteRefUpdate(repository1
.getRepository(), "HEAD", "refs/heads/test", false, null, null);
refUpdates.add(update);
spec.addURIRefUpdates(remote, refUpdates);
// now we can construct the push operation
PushOperation pop = new PushOperation(repository1.getRepository(),
spec, false, 0);
return pop;
}