Skip to content

Commit 32de0ed

Browse files
committed
Change test branch name from master to test
1 parent 494cbb6 commit 32de0ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/pl/project13/maven/git/AheadBehindTest.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,22 @@ protected void createCommitInSecondRepoAndPush() throws Exception {
138138
}
139139

140140
protected void createRemoteRepository() throws Exception {
141-
Git.init().setBare(true).setDirectory(remoteRepository.getRoot()).call();
141+
Git.init().setInitialBranch("test").setBare(true).setDirectory(remoteRepository.getRoot()).call();
142142
}
143143

144144
protected void setupLocalRepository() throws Exception {
145145
localRepositoryGit = Git.cloneRepository().setURI(remoteRepository.getRoot().toURI().toString())
146-
.setDirectory(localRepository.getRoot()).setBranch("master").call();
146+
.setDirectory(localRepository.getRoot()).setBranch("test").call();
147147

148148
StoredConfig config = localRepositoryGit.getRepository().getConfig();
149-
config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, "master", "remote", "origin");
150-
config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, "master", "merge", "refs/heads/master");
149+
config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, "test", "remote", "origin");
150+
config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, "test", "merge", "refs/heads/test");
151151
config.save();
152152
}
153153

154154
protected void setupSecondLocalRepository() throws Exception {
155155
secondLocalRepositoryGit = Git.cloneRepository().setURI(remoteRepository.getRoot().toURI().toString())
156-
.setDirectory(secondLocalRepository.getRoot()).setBranch("master").call();
156+
.setDirectory(secondLocalRepository.getRoot()).setBranch("test").call();
157157
}
158158

159159
protected void createAndPushInitialCommit() throws Exception {

0 commit comments

Comments
 (0)