Skip to content

Commit 2d5c138

Browse files
committed
Merge branch 'master' into release/2
2 parents 947a65d + f3ed82c commit 2d5c138

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/scm4j/releaser/scmactions/SCMActionBuild.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void execute(IProgress progress) {
6969
build(progress, headCommit);
7070

7171
tagBuild(progress, headCommit);
72-
72+
7373
raisePatchVersion(progress);
7474

7575
progress.reportStatus(comp.getName() + " " + rb.getVersion().toString() + " is built in " + rb.getName());
@@ -94,8 +94,7 @@ private String getDelayedTagRevision() {
9494
}
9595

9696
private void build(IProgress progress, VCSCommit headCommit) throws Exception, IOException {
97-
try (IVCSLockedWorkingCopy lwc = vcs.getWorkspace().getVCSRepositoryWorkspace(vcs.getRepoUrl()).getVCSLockedWorkingCopy()) {
98-
lwc.setCorrupted(true); // use lwc only once for building
97+
try (IVCSLockedWorkingCopy lwc = vcs.getWorkspace().getVCSRepositoryWorkspace(vcs.getRepoUrl()).getVCSLockedWorkingCopyTemp()) {
9998
progress.reportStatus(String.format("checking out %s on revision %s into %s", getName(), headCommit.getRevision(), lwc.getFolder().getPath()));
10099
vcs.checkout(rb.getName(), lwc.getFolder().getPath(), headCommit.getRevision());
101100
comp.getVcsRepository().getBuilder().build(comp, lwc.getFolder(), progress);

0 commit comments

Comments
 (0)