Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 1.2.1-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRobbo committed Aug 22, 2017
2 parents c448d6e + 72d39b9 commit ac130db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions src/main/java/org/commonwl/view/git/GitService.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@

package org.commonwl.view.git;

import static org.apache.jena.ext.com.google.common.io.Files.createTempDir;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.Set;

import org.apache.commons.codec.digest.DigestUtils;
import org.commonwl.view.researchobject.HashableAgent;
import org.eclipse.jgit.api.Git;
Expand All @@ -43,6 +33,16 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.Set;

import static org.apache.jena.ext.com.google.common.io.Files.createTempDir;

/**
* Handles Git related functionality
*/
Expand Down Expand Up @@ -82,6 +82,7 @@ public Git getRepository(GitDetails gitDetails, boolean reuseDir)
// Check if folder already exists
Path repoDir = gitStorage.resolve(baseName);
if (Files.isReadable(repoDir) && Files.isDirectory(repoDir)) {
repo = Git.open(repoDir.toFile());
repo.fetch().call();
} else {
// Create a folder and clone repository into it
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>Workflow URL</h2>
<strong>Don't know what to view?</strong> Try these from <i>common-workflow-language/workflows</i>:
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/compile/compile1.cwl">compile</a>,
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/make-to-cwl/dna.cwl">make-to-cwl</a>,
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/lobSTR/lobSTR-workflow.cwl">lobSTR</a>
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/lobstr-v1/workflows/lobSTR/lobSTR-workflow.cwl">lobSTR</a>
or <a href="/workflows">explore the collection</a>
</div>
<form id="add" action="#" th:action="@{/workflows}" th:object="${workflowForm}" method="POST">
Expand Down

0 comments on commit ac130db

Please sign in to comment.