Skip to content

Commit 110da6d

Browse files
targosjoyeecheung
authored andcommitted
fix landed in message for multiple commits (#217)
`getUpstreamHead` should return the last remote commit, no the one before it.
1 parent 5ad1b38 commit 110da6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/landing_session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class LandingSession extends Session {
244244

245245
getUpstreamHead(verbose) {
246246
const { upstream, branch } = this;
247-
return runSync('git', ['rev-parse', `${upstream}/${branch}^1`]).trim();
247+
return runSync('git', ['rev-parse', `${upstream}/${branch}`]).trim();
248248
}
249249

250250
async tryAbortAm() {

0 commit comments

Comments
 (0)