From 2c1532dd5740f9443b1148220e40c14ac5859106 Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Tue, 18 Jul 2017 11:15:49 -0400 Subject: match GitHub repo for https clones --- gulpfile.babel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index ce9e001..77e0670 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -23,7 +23,7 @@ gulp.task("hugo-preview", (cb) => buildSite(cb, ["--buildDrafts", "--buildFuture gulp.task("cms", () => { const match = process.env.REPOSITORY_URL ? process.env.REPOSITORY_URL : cp.execSync("git remote -v", {encoding: "utf-8"}); let repo = null; - match.replace(/github.com:(\S+)(\.git)?/, (_, m) => { + match.replace(/github.com[:/](\S+)(\.git)?/, (_, m) => { repo = m.replace(/\.git$/, ""); }); gulp.src("./src/cms/*") -- cgit v1.3