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 65287df commit 1d1ca5eCopy full SHA for 1d1ca5e
dev-bin/release.sh
@@ -10,6 +10,16 @@ if [ "$current_branch" = "main" ]; then
10
exit 1
11
fi
12
13
+# Fetch latest changes and check that we're not behind origin/main
14
+echo "Fetching from origin..."
15
+git fetch origin
16
+
17
+if ! git merge-base --is-ancestor origin/main HEAD; then
18
+ echo "Error: Current branch is behind origin/main."
19
+ echo "Please merge or rebase with origin/main before releasing."
20
+ exit 1
21
+fi
22
23
phar='geoip2.phar'
24
25
changelog=$(cat CHANGELOG.md)
0 commit comments