forked from jamescooke/flake8-aaa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add on_master check to tagging recipe
- Loading branch information
1 parent
59570b2
commit c5d58e5
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
git fetch origin -v | ||
|
||
branch_info=$(git status --short -b | head -1) | ||
|
||
if [[ $branch_info != '## master...origin/master' ]]; then | ||
echo "Not on master or master not up to date with origin, branch = $branch_info" | ||
exit 1 | ||
fi |