We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0342940 commit b5329b2Copy full SHA for b5329b2
github-actionify.sh
@@ -79,7 +79,7 @@ process() {
79
currentBranch=$(git rev-parse --abbrev-ref HEAD)
80
upstreamBranch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u})
81
remote=${upstreamBranch%/*}
82
- defaultBranch=$(git remote show "$remote" | grep "HEAD branch" | sed 's/.*: //')
+ defaultBranch=$(git remote show "$remote" | grep "HEAD" | sed 's/.*: //')
83
test "$currentBranch" = "$defaultBranch" || die "Non-default branch: $currentBranch"
84
git merge --ff --ff-only 'HEAD@{u}' >/dev/null ||
85
die "Cannot fast forward (local diverging?)"
0 commit comments