Skip to content

Commit

Permalink
Merge pull request #330 from ros-infrastructure/no_shallow_when_merge
Browse files Browse the repository at this point in the history
don't use shallow cloning when using merge-before-build
  • Loading branch information
dirk-thomas authored Aug 18, 2016
2 parents 76cbdc8 + 13792df commit d6a4002
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ros_buildfarm/templates/devel/devel_job.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ if pull_request:
path='catkin_workspace/src/%s' % source_repo_spec.name,
git_ssh_credential_id=git_ssh_credential_id,
))@
@[end if]@
@[if pull_request]@
@[else]@
@(SNIPPET(
'scm_git',
url=source_repo_spec.url,
Expand Down
3 changes: 2 additions & 1 deletion ros_buildfarm/templates/snippet/scm_git.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@
<relativeTargetDir>@ESCAPE(relative_target_dir)</relativeTargetDir>
</hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
@[end if]@
@[if not vars().get('merge_branch')]@
<hudson.plugins.git.extensions.impl.CloneOption>
<shallow>true</shallow>
<noTags>false</noTags>
<reference/>
</hudson.plugins.git.extensions.impl.CloneOption>
@[if vars().get('merge_branch')]@
@[else]@
<hudson.plugins.git.extensions.impl.PreBuildMerge>
<options>
<mergeRemote>origin</mergeRemote>
Expand Down

0 comments on commit d6a4002

Please sign in to comment.