You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -274,11 +283,8 @@ function commitRepo(forkedRepo, repoLocation, status, cb){
274
283
varchild=exec(cmd,
275
284
function(error,stdout,stderr){
276
285
if(error!==null){
277
-
console.dir(error);
278
286
app.log.debug('stdout: '+stdout);
279
-
console.dir(stdout);
280
287
app.log.debug('stderr: '+stderr);
281
-
console.dir(stderr);
282
288
if(stdout=='# On branch clean\nnothing to commit (working directory clean)\n'){
283
289
app.log.info(forkedRepo.blue.bold+'@'+repoLocation.yellow.bold+':clean branch '+'NOTHING TO COMMIT'.red.bold);
284
290
returncb(null,'DONE');
@@ -303,12 +309,15 @@ function pushCommit(forkedRepo, repoLocation, status, cb){
303
309
varchild=exec(cmd,
304
310
function(error,stdout,stderr){
305
311
if(error!==null){
306
-
console.dir(error);
307
312
app.log.debug('stdout: '+stdout);
308
-
console.dir(stdout);
309
313
app.log.debug('stderr: '+stderr);
310
-
console.dir(stdout);
311
-
returncb(error);
314
+
315
+
if(stdout=='To prevent you from losing history, non-fast-forward updates were rejected\nMerge the remote changes before pushing again. See the \'Note about\nfast-forwards\' section of \'git push --help\' for details.\n'){
316
+
app.log.warn(forkedRepo.blue.bold+'@'+repoLocation.yellow.bold+':clean branch '+'COMMIT NOT PUSHED'.red.bold+' : We may have already pushed to this fork!'.magenta.bold);
0 commit comments