Skip to content

Commit ac130db

Browse files
committed
Merge remote-tracking branch 'origin/master' into 1.2.1-RC1
2 parents c448d6e + 72d39b9 commit ac130db

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/main/java/org/commonwl/view/git/GitService.java

+11-10
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919

2020
package org.commonwl.view.git;
2121

22-
import static org.apache.jena.ext.com.google.common.io.Files.createTempDir;
23-
24-
import java.io.IOException;
25-
import java.net.URI;
26-
import java.net.URISyntaxException;
27-
import java.nio.file.Files;
28-
import java.nio.file.Path;
29-
import java.util.HashSet;
30-
import java.util.Set;
31-
3222
import org.apache.commons.codec.digest.DigestUtils;
3323
import org.commonwl.view.researchobject.HashableAgent;
3424
import org.eclipse.jgit.api.Git;
@@ -43,6 +33,16 @@
4333
import org.springframework.beans.factory.annotation.Value;
4434
import org.springframework.stereotype.Service;
4535

36+
import java.io.IOException;
37+
import java.net.URI;
38+
import java.net.URISyntaxException;
39+
import java.nio.file.Files;
40+
import java.nio.file.Path;
41+
import java.util.HashSet;
42+
import java.util.Set;
43+
44+
import static org.apache.jena.ext.com.google.common.io.Files.createTempDir;
45+
4646
/**
4747
* Handles Git related functionality
4848
*/
@@ -82,6 +82,7 @@ public Git getRepository(GitDetails gitDetails, boolean reuseDir)
8282
// Check if folder already exists
8383
Path repoDir = gitStorage.resolve(baseName);
8484
if (Files.isReadable(repoDir) && Files.isDirectory(repoDir)) {
85+
repo = Git.open(repoDir.toFile());
8586
repo.fetch().call();
8687
} else {
8788
// Create a folder and clone repository into it

src/main/resources/templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h2>Workflow URL</h2>
5353
<strong>Don't know what to view?</strong> Try these from <i>common-workflow-language/workflows</i>:
5454
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/compile/compile1.cwl">compile</a>,
5555
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/make-to-cwl/dna.cwl">make-to-cwl</a>,
56-
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/lobSTR/lobSTR-workflow.cwl">lobSTR</a>
56+
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/lobstr-v1/workflows/lobSTR/lobSTR-workflow.cwl">lobSTR</a>
5757
or <a href="/workflows">explore the collection</a>
5858
</div>
5959
<form id="add" action="#" th:action="@{/workflows}" th:object="${workflowForm}" method="POST">

0 commit comments

Comments
 (0)