Skip to content

Commit 00156e8

Browse files
authored
Use HTTPS over git:// when cloning starters
`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.
1 parent 614cc6c commit 00156e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-cli/src/init-starter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const clone = async (hostInfo: any, rootPath: string) => {
8282
url = hostInfo.ssh({ noCommittish: true })
8383
// Otherwise default to normal git syntax.
8484
} else {
85-
url = hostInfo.git({ noCommittish: true })
85+
url = hostInfo.https({ noCommittish: true })
8686
}
8787

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

0 commit comments

Comments
 (0)