cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/2] git commit: Fix crash in list-pulls when repo is null
Date Fri, 28 Mar 2014 20:15:10 GMT
Repository: cordova-coho
Updated Branches:
  refs/heads/master 89373b321 -> 6877917af


Fix crash in list-pulls when repo is null


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/b397e605
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/b397e605
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/b397e605

Branch: refs/heads/master
Commit: b397e6058e4daf28d88a14568828445dde9e1bcf
Parents: 89373b3
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Mar 28 16:14:38 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Mar 28 16:14:38 2014 -0400

----------------------------------------------------------------------
 coho | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/b397e605/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index 89eb2f8..c9651cc 100755
--- a/coho
+++ b/coho
@@ -1948,7 +1948,11 @@ function listGitHubPullRequests(repo, maxAge, hideUser, callback) {
                 console.log('\x1B[33m-----------------------------------------------------------------------------------------------\x1B[39m');
                 console.log('* ' + pullRequest.html_url);
                 // console.log('To merge: curl "' + pullRequest.patch_url + '" | git am');
-                console.log('To merge: git pull ' + pullRequest.head.repo.clone_url + ' '
+ pullRequest.head.ref);
+                if (!pullRequest.head.repo) {
+                    console.log('NO REPO EXISTS!');
+                } else {
+                    console.log('To merge: git pull ' + pullRequest.head.repo.clone_url +
' ' + pullRequest.head.ref);
+                }
                 if (pullRequest.body) {
                     console.log(pullRequest.body);
                 }


Mime
View raw message