public void oneOriginChange() throws Exception {
RevCommit commit1 = add("test.txt", "content");
File repo2 = initRepo();
RevCommit commit2 = add(repo2, "test2.txt", "content2.txt");
Repository repo = new FileRepository(testRepo);
RefUpdate originMaster = repo.updateRef(Constants.R_REMOTES
+ Constants.DEFAULT_REMOTE_NAME + "/" + Constants.MASTER);
originMaster.setNewObjectId(commit1);
originMaster.forceUpdate();
RemoteConfig config = new RemoteConfig(repo.getConfig(),
Constants.DEFAULT_REMOTE_NAME);