Skip to content

Commit

Permalink
Use HTTPS over git:// when cloning starters (gatsbyjs#3820)
Browse files Browse the repository at this point in the history
`git://` (which is what `hostInfo.git(...)` gets you) uses unencrypted transport isn't recommended as a way to clone GitHub repositories (https://help.github.com/articles/which-remote-url-should-i-use/).  This change uses HTTPS instead.
  • Loading branch information
davidjb authored and KyleAMathews committed Feb 6, 2018
1 parent a3fea82 commit 8261ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-cli/src/init-starter.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const clone = async (hostInfo: any, rootPath: string) => {
url = hostInfo.ssh({ noCommittish: true })
// Otherwise default to normal git syntax.
} else {
url = hostInfo.git({ noCommittish: true })
url = hostInfo.https({ noCommittish: true })
}

const branch = hostInfo.committish ? `-b ${hostInfo.committish}` : ``
Expand Down

0 comments on commit 8261ac3

Please sign in to comment.