allow starting release branch from everywhere
This commit is contained in:
parent
3b4cc241a7
commit
c5941e04ce
1 changed files with 0 additions and 7 deletions
7
Makefile
7
Makefile
|
|
@ -77,13 +77,6 @@ release:
|
|||
echo " V : version semver (ex. 1.0.7-rc1) — sert à nommer la branche."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@CURRENT=$$(git branch --show-current); \
|
||||
if [ "$$CURRENT" != "main" ]; then \
|
||||
echo "Refus : la cible doit être lancée depuis main."; \
|
||||
echo " Branche courante : $$CURRENT"; \
|
||||
echo " Fais : git checkout main && git pull --ff-only origin main"; \
|
||||
exit 1; \
|
||||
fi
|
||||
@if [ -n "$$(git status --porcelain)" ]; then \
|
||||
echo "Working tree sale, refus de créer une branche release."; \
|
||||
git status --short; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue