|
|
@ -27,12 +27,12 @@ options = { |
|
|
|
module.exports = function (options, globalCallback) { |
|
|
|
module.exports = function (options, globalCallback) { |
|
|
|
var url = options.remote, |
|
|
|
var url = options.remote, |
|
|
|
remote = git.remote(url), |
|
|
|
remote = git.remote(url), |
|
|
|
path = options.local, |
|
|
|
path = options.local + "/" + options.rev, |
|
|
|
repo = git.repo(path), |
|
|
|
repo = git.repo(path), |
|
|
|
exported = options.exported, |
|
|
|
exported = options.exported, |
|
|
|
opts = { |
|
|
|
opts = { |
|
|
|
want: options.branch, |
|
|
|
want: options.branch/*, |
|
|
|
/*onProgress: function (progress) { |
|
|
|
onProgress: function (progress) { |
|
|
|
process.stderr.write(progress); |
|
|
|
process.stderr.write(progress); |
|
|
|
}*/ |
|
|
|
}*/ |
|
|
|
}, |
|
|
|
}, |
|
|
|