mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
13 lines
361 B
Bash
Executable File
13 lines
361 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x -e
|
|
MASTER_ID=$(git rev-parse "origin/master")
|
|
CURRENT_ID=$(git rev-parse "HEAD")
|
|
BASED_ON_ID=$(git merge-base "$CURRENT_ID" "$MASTER_ID")
|
|
|
|
if [[ "$MASTER_ID" != "$BASED_ON_ID" ]]
|
|
then
|
|
echo "Current branch is based on $BASED_ON_ID, which is not the latest \`master\`: $MASTER_ID. Consider \`git rebase origin/master\`."
|
|
exit 1
|
|
fi
|