Skip to content

Commit

Permalink
Must change how branch testing is done
Browse files Browse the repository at this point in the history
The other changes in the file, involving when the variables are
evaluated, meant that the use of Make's ifneq conditional no longer
worked as expected.
  • Loading branch information
mhucka committed Oct 24, 2021
1 parent 542b4ac commit ae21648
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ run-shiv:
release: | test-branch release-on-github print-instructions

test-branch: vars
ifneq ($(branch),main)
$(error Current git branch != main. Merge changes into main first)
endif
$(if $(filter-out $(branch),main),$(error Current git branch != main.))

update-init: vars
@sed -i .bak -e "s|^\(__version__ *=\).*|\1 '$(version)'|" $(init_file)
Expand Down

0 comments on commit ae21648

Please sign in to comment.