We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc431b2 commit c61731fCopy full SHA for c61731f
1 file changed
git-branch-linearity.sh
@@ -8,7 +8,7 @@ git fetch origin $TARGET_BRANCH 2> /dev/null
8
9
10
# Detection of (PR) merge commits at tip of HEAD:
11
-target_sha=$(git rev-parse $TARGET_BRANCH)
+target_sha=$(git rev-parse origin/${TARGET_BRANCH})
12
# Get SHA of parent commit
13
merge_target=$(git log --merges --oneline --parents --no-abbrev-commit HEAD^..HEAD | cut -d" " -f2)
14
# If parent is the target branch, start from the commit before the merge commit
0 commit comments