Skip to content

Commit

Permalink
Allow publishing from shallow clone
Browse files Browse the repository at this point in the history
Previously this operation was forbidden in versions of Git CLI < 1.9.0
(see http://stackoverflow.com/q/6900103 for more details).

Now this operation will succeed using newer client version, but it will
fail when using an old version due to
jenkinsci/git-client-plugin#192

Fixes [JENKINS-31108].
  • Loading branch information
loomchild committed Nov 7, 2015
1 parent b5e6baa commit e31193b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/hudson/plugins/git/GitPublisher.java
Expand Up @@ -190,11 +190,6 @@ public boolean perform(AbstractBuild<?, ?> build,

final GitSCM gitSCM = (GitSCM) scm;

if(gitSCM.getUseShallowClone()) {
listener.getLogger().println("GitPublisher disabled while using shallow clone.");
return true;
}

final String projectName = build.getProject().getName();
final int buildNumber = build.getNumber();
final Result buildResult = build.getResult();
Expand Down

0 comments on commit e31193b

Please sign in to comment.