Skip to content

Commit

Permalink
Fix directory not created on git source retriever
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangunalp committed Mar 9, 2017
1 parent c1739d6 commit 0207801
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class GitSource extends SourceRetriever {
def fetch = target.toPath().resolve("$repository@$branch").toFile()
if (fetch.exists()) {
return [fetch.toURI().toURL()]
} else {
fetch.parentFile.mkdirs()
}
def command = "git clone -b $branch --single-branch $sourceURL $repository@$branch"
println command
Expand Down

0 comments on commit 0207801

Please sign in to comment.