Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dacbd committed Oct 8, 2022
1 parent 9e52db4 commit 39d0a45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,22 @@ const inferToken = () => {

const inferDriver = (opts = {}) => {
const { repo } = opts;
console.log('!!!!! DEBUG !!!!!');
console.log(repo);
if (repo) {
const url = new URL(repo);
console.log(url);
if (url.hostname === 'github.com') return GITHUB;
if (url.hostname === 'gitlab.com') return GITLAB;
if (/bitbucket\.(com|org)/.test(url.hostname)) return BB;
}

console.log('!!!!! DEBUG !!!!!');
if (GITHUB_REPOSITORY) return GITHUB;
if (CI_PROJECT_URL) return GITLAB;
if (BITBUCKET_REPO_UUID) return BB;

console.log('!!!!! DEBUG !!!!!');
};

const fixGitSafeDirectory = () => {
Expand Down

0 comments on commit 39d0a45

Please sign in to comment.