Skip to content

Commit 6126914

Browse files
committed
Rename method to create new organisation directory
Assign a proper name to the method responsible to create the new empty directory for the GitHub organisation, ready to host the clone of the GitHub Git repositories to import Change-Id: I3347d15c71d1712d21b1ebf12076e6c08e5820a6
1 parent 56cd05d commit 6126914

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git

github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/GitCloneStep.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public GitCloneStep(
4545
super(gitConfig.gitHubUrl, organisation, repository, gitHubRepoFactory);
4646
LOG.debug("GitHub Clone " + organisation + "/" + repository);
4747
this.gitDir = gitConfig.gitDir.toFile();
48-
this.destinationDirectory = getDestinationDirectory(organisation, repository);
48+
this.destinationDirectory = prepareTargetGitDirectory(organisation, repository);
4949
}
5050

51-
private File getDestinationDirectory(String organisation, String repository)
51+
private File prepareTargetGitDirectory(String organisation, String repository)
5252
throws GitDestinationAlreadyExistsException, GitDestinationNotWritableException {
5353
File orgDirectory = new File(gitDir, organisation);
5454
File destDirectory = new File(orgDirectory, repository + ".git");
@@ -90,10 +90,6 @@ private boolean isNotEmpty(File destDirectory) {
9090
return destDirectory.listFiles().length > 0;
9191
}
9292

93-
public File getDestinationDirectory() {
94-
return destinationDirectory;
95-
}
96-
9793
@Override
9894
public boolean rollback() {
9995
File gitDirectory = destinationDirectory;

0 commit comments

Comments
 (0)