Skip to content

Commit

Permalink
Merge pull request #3 from jenkinsci/master
Browse files Browse the repository at this point in the history
Updating the local repository
  • Loading branch information
raghavgarg098 authored Apr 18, 2021
2 parents 48d334a + 7b8457d commit eec5a9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p>
If JGit and command line git are both enabled on an agent, the git plugin uses a "git tool chooser" to choose a preferred git implementation.
The preferred git implementation depends on the size of the repository and the git plugin features requested by the job.
If the repository size is <strong>less than</strong> the JGit repository size threshold and the git features of the job are all implmented in JGit, then JGit is used.
If the repository size is <strong>less than</strong> the JGit repository size threshold and the git features of the job are all implemented in JGit, then JGit is used.
If the repository size is <strong>greater than</strong> the JGit repository size threshold or the job requires git features that are not implemented in JGit, then command line git is used.
</p>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<strong>Tagging extensions</strong> allow the plugin to apply tags in the current workspace.
</li>
<li>
<strong>Build inititation extensions</strong> control the conditions that start a build.
<strong>Build initiation extensions</strong> control the conditions that start a build.
They can ignore notifications of a change or force a deeper evaluation of the commits when polling.
</li>
<li>
Expand Down
12 changes: 1 addition & 11 deletions src/test/java/hudson/plugins/git/GitSCMTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3202,17 +3202,7 @@ public void testCommitMessageIsPrintedToLogs() throws Exception {
sampleRepo.git("commit", "--all", "--message=test commit");
FreeStyleProject p = setupSimpleProject("master");
Run<?,?> run = rule.buildAndAssertSuccess(p);
TaskListener mockListener = Mockito.mock(TaskListener.class);
Mockito.when(mockListener.getLogger()).thenReturn(Mockito.spy(StreamTaskListener.fromStdout().getLogger()));

p.getScm().checkout(run, new Launcher.LocalLauncher(listener),
new FilePath(run.getRootDir()).child("tmp-" + "master"),
mockListener, null, SCMRevisionState.NONE);

ArgumentCaptor<String> logCaptor = ArgumentCaptor.forClass(String.class);
verify(mockListener.getLogger(), atLeastOnce()).println(logCaptor.capture());
List<String> values = logCaptor.getAllValues();
assertThat(values, hasItem("Commit message: \"test commit\""));
rule.waitForMessage("Commit message: \"test commit\"", run);
}

/**
Expand Down

0 comments on commit eec5a9f

Please sign in to comment.