mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 10:46:34 +00:00
Get rid of gitCli in favor of gitwrap
This commit is contained in:
parent
4bfe52d73b
commit
cb5bb69b47
@ -1,5 +1,5 @@
|
||||
(function() {
|
||||
var _, async, examplesData, fs, gitCli, path, resin, visuals;
|
||||
var _, async, examplesData, fs, gitwrap, path, resin, visuals;
|
||||
|
||||
async = require('async');
|
||||
|
||||
@ -9,12 +9,12 @@
|
||||
|
||||
_ = require('lodash');
|
||||
|
||||
gitCli = require('git-cli');
|
||||
|
||||
resin = require('resin-sdk');
|
||||
|
||||
visuals = require('resin-cli-visuals');
|
||||
|
||||
gitwrap = require('gitwrap');
|
||||
|
||||
examplesData = require('../data/examples.json');
|
||||
|
||||
exports.list = {
|
||||
@ -82,8 +82,11 @@
|
||||
return callback(error);
|
||||
});
|
||||
}, function(callback) {
|
||||
console.info("Cloning " + example.display_name + " to " + example.name);
|
||||
return gitCli.Repository.clone(example.repository, example.name, callback);
|
||||
var currentDirectory, git;
|
||||
currentDirectory = process.cwd();
|
||||
console.info("Cloning " + example.display_name + " to " + currentDirectory);
|
||||
git = gitwrap.create(currentDirectory);
|
||||
return git.execute("clone " + example.repository, callback);
|
||||
}
|
||||
], done);
|
||||
}
|
||||
|
@ -2,9 +2,9 @@ async = require('async')
|
||||
fs = require('fs')
|
||||
path = require('path')
|
||||
_ = require('lodash')
|
||||
gitCli = require('git-cli')
|
||||
resin = require('resin-sdk')
|
||||
visuals = require('resin-cli-visuals')
|
||||
gitwrap = require('gitwrap')
|
||||
examplesData = require('../data/examples.json')
|
||||
|
||||
exports.list =
|
||||
@ -96,7 +96,11 @@ exports.clone =
|
||||
return callback(error)
|
||||
|
||||
(callback) ->
|
||||
console.info("Cloning #{example.display_name} to #{example.name}")
|
||||
gitCli.Repository.clone(example.repository, example.name, callback)
|
||||
currentDirectory = process.cwd()
|
||||
|
||||
console.info("Cloning #{example.display_name} to #{currentDirectory}")
|
||||
|
||||
git = gitwrap.create(currentDirectory)
|
||||
git.execute("clone #{example.repository}", callback)
|
||||
|
||||
], done
|
||||
|
@ -53,7 +53,6 @@
|
||||
"conf.js": "^0.1.1",
|
||||
"diskio": "^1.0.0",
|
||||
"drivelist": "^1.2.1",
|
||||
"git-cli": "~0.8.2",
|
||||
"gitwrap": "^1.1.0",
|
||||
"lodash": "~2.4.1",
|
||||
"lodash-contrib": "~241.4.14",
|
||||
|
Loading…
Reference in New Issue
Block a user