Skip to content
Permalink
Browse files

[JENKINS-42050] Add help for multiple refspecs

  • Loading branch information
MarkEWaite committed Feb 15, 2017
1 parent cae9fb6 commit d2c36cf91698ca1e890e291b824cc976058e596e
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/main/resources/hudson/plugins/git/UserRemoteConfig/help-refspec.html
@@ -11,6 +11,16 @@
When do you want to modify this value? A good example is when you want to just retrieve one branch. For example,
<tt>+refs/heads/master:refs/remotes/origin/master</tt> would only retrieve the master branch and nothing else.

<p>
The plugin uses a default refspec for its initial fetch, unless the "Advanced Clone Option" is set to honor refspec.
This keeps compatibility with previous behavior, and allows the job definition to decide if the refspec should be
honored on initial clone.

<p>
Mulitple refspecs can be entered by separating them with a space character.
<tt>+refs/heads/master:refs/remotes/origin/master&nbsp;+refs/heads/develop:refs/remotes/origin/develop</tt>
retrieves the master branch and the develop branch and nothing else.

<p>
See <a href="http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#def_refspec">the term definition in Git user manual</a> for more details.
</div>
</div>

0 comments on commit d2c36cf

Please sign in to comment.
You can’t perform that action at this time.