From bb1193e7efb14dba5eaa4078a02988905653808c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 15 Mar 2018 14:49:56 +0100 Subject: [PATCH] fix landed in message for multiple commits `getUpstreamHead` should return the last remote commit, no the one before it. --- lib/landing_session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/landing_session.js b/lib/landing_session.js index d5e1b499..7e89b7d7 100644 --- a/lib/landing_session.js +++ b/lib/landing_session.js @@ -244,7 +244,7 @@ class LandingSession extends Session { getUpstreamHead(verbose) { const { upstream, branch } = this; - return runSync('git', ['rev-parse', `${upstream}/${branch}^1`]).trim(); + return runSync('git', ['rev-parse', `${upstream}/${branch}`]).trim(); } async tryAbortAm() {