@@ -138,22 +138,22 @@ protected void createCommitInSecondRepoAndPush() throws Exception {
138
138
}
139
139
140
140
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 ();
142
142
}
143
143
144
144
protected void setupLocalRepository () throws Exception {
145
145
localRepositoryGit = Git .cloneRepository ().setURI (remoteRepository .getRoot ().toURI ().toString ())
146
- .setDirectory (localRepository .getRoot ()).setBranch ("master " ).call ();
146
+ .setDirectory (localRepository .getRoot ()).setBranch ("test " ).call ();
147
147
148
148
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 " );
151
151
config .save ();
152
152
}
153
153
154
154
protected void setupSecondLocalRepository () throws Exception {
155
155
secondLocalRepositoryGit = Git .cloneRepository ().setURI (remoteRepository .getRoot ().toURI ().toString ())
156
- .setDirectory (secondLocalRepository .getRoot ()).setBranch ("master " ).call ();
156
+ .setDirectory (secondLocalRepository .getRoot ()).setBranch ("test " ).call ();
157
157
}
158
158
159
159
protected void createAndPushInitialCommit () throws Exception {
0 commit comments