You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2015/05/19 01:52:13 UTC
cordova-lib git commit: Fix trivial bug with log message when no
git_ref is specified.
Repository: cordova-lib
Updated Branches:
refs/heads/master c1bd6660f -> 8e8079edd
Fix trivial bug with log message when no git_ref is specified.
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/8e8079ed
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/8e8079ed
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/8e8079ed
Branch: refs/heads/master
Commit: 8e8079edd6adfea8ac39a55f985ebf8b951a9150
Parents: c1bd666
Author: Nikhil Khandelwal <ni...@microsoft.com>
Authored: Mon May 18 16:44:25 2015 -0700
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Mon May 18 16:47:25 2015 -0700
----------------------------------------------------------------------
cordova-lib/src/gitclone.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/8e8079ed/cordova-lib/src/gitclone.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/gitclone.js b/cordova-lib/src/gitclone.js
index cf01a02..bd080c5 100644
--- a/cordova-lib/src/gitclone.js
+++ b/cordova-lib/src/gitclone.js
@@ -39,7 +39,7 @@ function clone(git_url, git_ref, clone_dir){
// If no clone_dir is specified, create a tmp dir which git will clone into.
var tmp_dir = clone_dir;
if(!tmp_dir){
- tmp_dir = path.join(os.tmpdir(), 'git', String((new Date()).valueOf()));
+ tmp_dir = path.join(os.tmpdir(), 'git', String((new Date()).valueOf()));
}
shell.rm('-rf', tmp_dir);
shell.mkdir('-p', tmp_dir);
@@ -68,8 +68,8 @@ function clone(git_url, git_ref, clone_dir){
});
}
}).then(function(){
- events.emit('log', 'Repository "' + git_url + '" checked out to git ref "' + git_ref + '".');
- return tmp_dir;
+ events.emit('log', 'Repository "' + git_url + '" checked out to git ref "' + (git_ref || "master") + '".');
+ return tmp_dir;
}).fail(function (err) {
shell.rm('-rf', tmp_dir);
return Q.reject(err);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org