We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ee31c0 commit 66dfe47Copy full SHA for 66dfe47
1 file changed
release.sh
@@ -140,9 +140,11 @@ git tag "${new_tag}"
140
echo ""
141
echo "Pushing to origin and aur..."
142
git push origin master
143
-# AUR rejects subdirectories (.github/). Create a filtered commit for AUR.
+# AUR rejects subdirectories (.github/). Create a filtered commit parented on
144
+# AUR's current master so the hook only sees clean commits.
145
aur_tree=$(git ls-tree HEAD | grep -v '.github' | git mktree)
-aur_commit=$(git commit-tree "${aur_tree}" -p HEAD -m "Release ${new_tag}")
146
+aur_parent=$(git rev-parse aur/master)
147
+aur_commit=$(git commit-tree "${aur_tree}" -p "${aur_parent}" -m "Release ${new_tag}")
148
git -c push.followTags=false push aur "${aur_commit}:refs/heads/master"
149
git -c push.followTags=false push origin "${new_tag}"
150
0 commit comments