Skip to content

Commit c61731f

Browse files
authored
fixup
1 parent bc431b2 commit c61731f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git-branch-linearity.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git fetch origin $TARGET_BRANCH 2> /dev/null
88

99

1010
# Detection of (PR) merge commits at tip of HEAD:
11-
target_sha=$(git rev-parse $TARGET_BRANCH)
11+
target_sha=$(git rev-parse origin/${TARGET_BRANCH})
1212
# Get SHA of parent commit
1313
merge_target=$(git log --merges --oneline --parents --no-abbrev-commit HEAD^..HEAD | cut -d" " -f2)
1414
# If parent is the target branch, start from the commit before the merge commit

0 commit comments

Comments
 (0)