Skip to content

Commit

Permalink
Added comment for static method explaining decision
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDavSmasher committed Dec 17, 2024
1 parent b1fc6d8 commit 1d84af4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/edu/byu/cs/autograder/git/GitHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private void fetchRepo(File intoDirectory) throws GradingException {
fetchRepoFromUrl(gradingContext.repoUrl(), intoDirectory);
}

//Method must be static due to the lack of GradingContext in cases where this method is required
public static void fetchRepoFromUrl(String repoUrl, File intoDirectory) throws GradingException {
CloneCommand cloneCommand = Git.cloneRepository()
.setURI(repoUrl)
Expand Down

0 comments on commit 1d84af4

Please sign in to comment.