diff options
| author | David Calavera <david.calavera@gmail.com> | 2017-08-10 08:18:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-10 08:18:13 -0700 |
| commit | f70a7350a503c9e85190a835ef77b938dad63dc4 (patch) | |
| tree | b623590a33e6ab22eda083d63a7e1b25fba9bc78 /gulpfile.babel.js | |
| parent | d9b563f34c0b324a51c8ba8df42f03811b1a22ce (diff) | |
| parent | 2c1532dd5740f9443b1148220e40c14ac5859106 (diff) | |
Merge pull request #18 from netlify-templates/https-clones
match GitHub repo for https clones
Diffstat (limited to 'gulpfile.babel.js')
| -rw-r--r-- | gulpfile.babel.js | 2 |
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/*") |
