Ref txRemoteHead = tx.command(UpdateRef.class).setName(remoteRef)
.setNewValue(newcommit.getId()).call().get();
assertEquals(newcommit.getId(), txRemoteHead.getObjectId());
// commit transaction
tx.commit();
txRemoteHead = geogig.command(RefParse.class).setName(remoteRef).call().get();
assertEquals(newcommit.getId(), txRemoteHead.getObjectId());
txRemoteHead = geogig.command(RefParse.class).setName(unchangedRemoteRef).call().get();
assertEquals(headCommit.getId(), txRemoteHead.getObjectId());