Master vs stable


(Aleks Bunin) #1

Hi,

I have two installations of the Homebrew on a two different systems. One is older install, which follows master branch, and one is newer, which follows stable brach ('m talking about /usr/local/Homebrew repository). I’m troubleshooting one cask formulae I created and seeing different behavior depending on which system I will run: the system with master branch works flawlessly, one on stable, well — doesn’t work. So I am not sure what’s going on and unable to force newer install to force stay on master branch.

So question is: how to force branch on repository, so it won’t change after brew update?

THanks.


(Sean Molenaar) #2

There is no stable branch? See https://github.com/homebrew/brew

You can reset everything to master using: brew update-reset


(Aleks Bunin) #3

Hmm… It seems like it checks out latest tag as stable branch. but thanks about brew update-reset command… Will try it.


(Mike McQuaid) #4

Yes by default Homebrew checks out the latest tag as the stable branch unless you have run a developer command (see man brew) or set HOMEBREW_DEVELOPER in your environment in which case it tracks the master branch or whatever branch you were already on.


(Aleks Bunin) #5

Thanks @MikeMcQuaid. This explains everything now.