enable analytics

This commit is contained in:
2017-09-08 23:16:09 +02:00
parent 78e6f13adf
commit 6971df069a
8 changed files with 45 additions and 18 deletions

View File

@@ -6,7 +6,8 @@ import { Dockerfile } from './mod_docker/index'
/**
* a info instance about the git respoitory at cwd :)
*/
export let repo: GitRepo
if (process.env.CI_REPOSITORY_URL) {
repo = new GitRepo(process.env.CI_REPOSITORY_URL)
let repoString: string = process.env.CI_REPOSITORY_URL
if (!repoString) {
repoString = 'https://undefined:undefined@github.com/undefined/undefined.git'
}
export let repo = new GitRepo(repoString)