提交 a051e040 编写于 作者: J Jason Park

Change SSH URLs of the repositories to HTTPS

上级 b9e9488a
...@@ -94,7 +94,7 @@ const cacheCategories = () => { ...@@ -94,7 +94,7 @@ const cacheCategories = () => {
const downloadCategories = () => ( const downloadCategories = () => (
fs.pathExistsSync(repoPath) ? fs.pathExistsSync(repoPath) ?
execute(`git fetch && git reset --hard origin/master`, repoPath) : execute(`git fetch && git reset --hard origin/master`, repoPath) :
execute(`git clone git@github.com:algorithm-visualizer/algorithms ${repoPath}`, __dirname) execute(`git clone https://github.com/algorithm-visualizer/algorithms.git ${repoPath}`, __dirname)
); );
let categories = []; let categories = [];
......
...@@ -29,7 +29,7 @@ const trace = lang => (req, res, next) => { ...@@ -29,7 +29,7 @@ const trace = lang => (req, res, next) => {
const buildRelease = release => ( const buildRelease = release => (
fs.pathExistsSync(repoPath) ? fs.pathExistsSync(repoPath) ?
execute(`git fetch && ! git diff-index --quiet ${release.target_commitish}`, repoPath) : execute(`git fetch && ! git diff-index --quiet ${release.target_commitish}`, repoPath) :
execute(`git clone git@github.com:algorithm-visualizer/tracers ${repoPath}`, __dirname) execute(`git clone https://github.com/algorithm-visualizer/tracers.git ${repoPath}`, __dirname)
).then(() => execute(`git reset --hard ${release.target_commitish} && npm install && npm run build && ./bin/build`, repoPath)); ).then(() => execute(`git reset --hard ${release.target_commitish} && npm install && npm run build && ./bin/build`, repoPath));
GitHubApi.getLatestRelease('algorithm-visualizer', 'tracers').then(buildRelease); GitHubApi.getLatestRelease('algorithm-visualizer', 'tracers').then(buildRelease);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册