aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.babel.js
diff options
context:
space:
mode:
authorShawn Erquhart <shawn@erquh.art>2017-07-18 11:15:49 -0400
committerShawn Erquhart <shawn@erquh.art>2017-07-18 11:15:49 -0400
commit2c1532dd5740f9443b1148220e40c14ac5859106 (patch)
treeb623590a33e6ab22eda083d63a7e1b25fba9bc78 /gulpfile.babel.js
parentd9b563f34c0b324a51c8ba8df42f03811b1a22ce (diff)
match GitHub repo for https clones
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r--gulpfile.babel.js2
1 files changed, 1 insertions, 1 deletions
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/*")