From 7bd074dbe58fa7aeece44174c83efe0a3864d614 Mon Sep 17 00:00:00 2001 From: Aaron Ladage Date: Thu, 5 Jun 2014 10:18:16 -0500 Subject: [PATCH 1/2] Added --force option to clone command --- lib/command_clone.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/command_clone.js b/lib/command_clone.js index 157ab22..2dac059 100644 --- a/lib/command_clone.js +++ b/lib/command_clone.js @@ -28,6 +28,11 @@ module.exports = function (task, exec, done) { args.push(options.branch); } + if (options.force) { + args.push('--force'); + args.push(options.force); + } + if (typeof options.depth !== 'undefined') { args.push('--depth'); args.push(options.depth); From 4e9ce558e91888cd698e5bb027e1ce93dc409499 Mon Sep 17 00:00:00 2001 From: Aaron Ladage Date: Thu, 5 Jun 2014 10:23:09 -0500 Subject: [PATCH 2/2] Oops...forgot to add to options --- lib/command_clone.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/command_clone.js b/lib/command_clone.js index 2dac059..504f78d 100644 --- a/lib/command_clone.js +++ b/lib/command_clone.js @@ -7,6 +7,7 @@ module.exports = function (task, exec, done) { var options = task.options({ bare: false, branch: false, + force: false, repository: false, directory: false });