brew: Make HOMEBREW_REPOSITORY different from prefix only when 'brew' is a symlink
brew: Make HOMEBREW_REPOSITORY different from prefix only when 'brew' is a symlink

Closes #49261.

Signed-off-by: Mike McQuaid <a17fed27eaa842282862ff7c1b9c8395a26ac320@mikemcquaid.com>

cprecioso/homebrew,Homebrew/linuxbrew,dutchcoders/homebrew,emcrisostomo/homebrew,booi/homebrew,decors/homebrew,AlexejK/homebrew,elgertam/homebrew,skinny-framework/homebrew,vigo/homebrew,alebcay/homebrew,drewwells/homebrew,pcottle/homebrew,jamer/homebrew,chadcatlett/homebrew,benjaminfrank/homebrew,getgauge/homebrew,sakra/homebrew,nandub/homebrew,afh/homebrew,ear/homebrew,Linuxbrew/linuxbrew,ExtremeMan/homebrew,saketkc/linuxbrew,influxdb/homebrew,georgschoelly/homebrew,getgauge/homebrew,hakamadare/homebrew,influxdb/homebrew,gnubila-france/linuxbrew,bigbes/homebrew,influxdata/homebrew,dongcarl/homebrew,youtux/homebrew,cprecioso/homebrew,elyscape/homebrew,ExtremeMan/homebrew,drbenmorgan/linuxbrew,Homebrew/linuxbrew,sferik/homebrew,optikfluffel/homebrew,jamer/homebrew,marcwebbie/homebrew,galaxy001/homebrew,DoomHammer/linuxbrew,thinker0/homebrew,apjanke/homebrew,mkrapp/homebrew,LinusU/homebrew,Angeldude/linuxbrew,totalvoidness/homebrew,tutumcloud/homebrew,getgauge/homebrew,muellermartin/homebrew,benjaminfrank/homebrew,dutchcoders/homebrew,tutumcloud/homebrew,elyscape/homebrew,hanxue/homebrew,sferik/homebrew,SteveClement/homebrew,ilovezfs/homebrew,brunchboy/homebrew,dplarson/homebrew,jamer/homebrew,sferik/homebrew,Homebrew/homebrew,treyharris/homebrew,apjanke/homebrew,Linuxbrew/linuxbrew,Asuranceturix/homebrew,Linuxbrew/linuxbrew,ralic/homebrew,slyphon/homebrew,dplarson/homebrew,alebcay/homebrew,SteveClement/homebrew,scpeters/homebrew,dongcarl/homebrew,yumitsu/homebrew,benjaminfrank/homebrew,filcab/homebrew,alebcay/homebrew,dongcarl/homebrew,pcottle/homebrew,influxdata/homebrew,Linuxbrew/linuxbrew,reelsense/linuxbrew,deorth/homebrew,alebcay/homebrew,skinny-framework/homebrew,josa42/homebrew,Red54/homebrew,cprecioso/homebrew,reelsense/homebrew,drbenmorgan/linuxbrew,ablyler/homebrew,drewwells/homebrew,elgertam/homebrew,totalvoidness/homebrew,galaxy001/homebrew,optikfluffel/homebrew,3van/homebrew,vigo/homebrew,LinusU/homebrew,OJFord/homebrew,Homebrew/linuxbrew,marcwebbie/homebrew,royhodgman/homebrew,theeternalsw0rd/homebrew,LinusU/homebrew,Asuranceturix/homebrew,cscetbon/homebrew,sjackman/linuxbrew,DoomHammer/linuxbrew,georgschoelly/homebrew,dericed/homebrew,Red54/homebrew,scorphus/homebrew,nandub/homebrew,dongcarl/homebrew,emcrisostomo/homebrew,reelsense/homebrew,tschoonj/homebrew,saketkc/linuxbrew,reelsense/homebrew,yumitsu/homebrew,cprecioso/homebrew,galaxy001/homebrew,bigbes/homebrew,SteveClement/homebrew,michaKFromParis/homebrew-sparks,theeternalsw0rd/homebrew,Asuranceturix/homebrew,scpeters/homebrew,treyharris/homebrew,drbenmorgan/linuxbrew,ear/homebrew,emcrisostomo/homebrew,josa42/homebrew,joshfriend/homebrew,slyphon/homebrew,hakamadare/homebrew,booi/homebrew,saketkc/linuxbrew,ear/homebrew,Homebrew/homebrew,liamstask/homebrew,ryanfb/homebrew,emcrisostomo/homebrew,drbenmorgan/linuxbrew,hakamadare/homebrew,optikfluffel/homebrew,influxdata/homebrew,theeternalsw0rd/homebrew,pcottle/homebrew,base10/homebrew,brunchboy/homebrew,chadcatlett/homebrew,tutumcloud/homebrew,DoomHammer/linuxbrew,decors/homebrew,apjanke/homebrew,SteveClement/homebrew,lrascao/homebrew,ralic/homebrew,liamstask/homebrew,ablyler/homebrew,ryanfb/homebrew,drewwells/homebrew,3van/homebrew,chadcatlett/homebrew,marcwebbie/homebrew,elyscape/homebrew,gnubila-france/linuxbrew,SuperNEMO-DBD/cadfaelbrew,nandub/homebrew,dericed/homebrew,dickeyxxx/homebrew,scpeters/homebrew,gawbul/homebrew,BrewTestBot/homebrew,scorphus/homebrew,jamer/homebrew,ilovezfs/homebrew,deorth/homebrew,elgertam/homebrew,nandub/homebrew,lrascao/homebrew,pcottle/homebrew,afh/homebrew,Asuranceturix/homebrew,bigbes/homebrew,sometimesfood/homebrew,ExtremeMan/homebrew,scpeters/homebrew,gnubila-france/linuxbrew,AlexejK/homebrew,BrewTestBot/homebrew,yumitsu/homebrew,sferik/homebrew,mkrapp/homebrew,getgauge/homebrew,DoomHammer/linuxbrew,afh/homebrew,OJFord/homebrew,Angeldude/linuxbrew,elgertam/homebrew,vigo/homebrew,sometimesfood/homebrew,Angeldude/linuxbrew,youtux/homebrew,brunchboy/homebrew,deorth/homebrew,Homebrew/homebrew,thinker0/homebrew,mkrapp/homebrew,quantumsteve/homebrew,esamson/homebrew,treyharris/homebrew,liamstask/homebrew,Homebrew/linuxbrew,dickeyxxx/homebrew,totalvoidness/homebrew,gnubila-france/linuxbrew,frodeaa/homebrew,tutumcloud/homebrew,pcottle/homebrew,youtux/homebrew,SuperNEMO-DBD/cadfaelbrew,tschoonj/homebrew,elyscape/homebrew,kevinastone/homebrew,sjackman/linuxbrew,3van/homebrew,scorphus/homebrew,kevinastone/homebrew,ilovezfs/homebrew,dericed/homebrew,royhodgman/homebrew,base10/homebrew,cscetbon/homebrew,dericed/homebrew,SteveClement/homebrew,afh/homebrew,skinny-framework/homebrew,ablyler/homebrew,royhodgman/homebrew,ryanfb/homebrew,ryanfb/homebrew,OJFord/homebrew,dutchcoders/homebrew,michaKFromParis/homebrew-sparks,skinny-framework/homebrew,cscetbon/homebrew,quantumsteve/homebrew,decors/homebrew,BrewTestBot/homebrew,liamstask/homebrew,optikfluffel/homebrew,LinusU/homebrew,AlexejK/homebrew,drewwells/homebrew,joshfriend/homebrew,reelsense/linuxbrew,quantumsteve/homebrew,galaxy001/homebrew,thinker0/homebrew,ralic/homebrew,reelsense/linuxbrew,hanxue/homebrew,lrascao/homebrew,dickeyxxx/homebrew,filcab/homebrew,sometimesfood/homebrew,brunchboy/homebrew,influxdb/homebrew,benjaminfrank/homebrew,Homebrew/homebrew,michaKFromParis/homebrew-sparks,saketkc/linuxbrew,Angeldude/linuxbrew,theeternalsw0rd/homebrew,Red54/homebrew,muellermartin/homebrew,BrewTestBot/homebrew,base10/homebrew,youtux/homebrew,dplarson/homebrew,muellermartin/homebrew,esamson/homebrew,tschoonj/homebrew,ilovezfs/homebrew,muellermartin/homebrew,sakra/homebrew,filcab/homebrew,SuperNEMO-DBD/cadfaelbrew,kevinastone/homebrew,bigbes/homebrew,sometimesfood/homebrew,totalvoidness/homebrew,esamson/homebrew,decors/homebrew,reelsense/linuxbrew,quantumsteve/homebrew,thinker0/homebrew,hanxue/homebrew,ralic/homebrew,kevinastone/homebrew,apjanke/homebrew,reelsense/homebrew,dplarson/homebrew,josa42/homebrew,slyphon/homebrew,SuperNEMO-DBD/cadfaelbrew,joshfriend/homebrew,gawbul/homebrew,dickeyxxx/homebrew,influxdata/homebrew,frodeaa/homebrew,AlexejK/homebrew,Red54/homebrew,georgschoelly/homebrew,hakamadare/homebrew,treyharris/homebrew,OJFord/homebrew,sakra/homebrew,esamson/homebrew,tschoonj/homebrew,marcwebbie/homebrew,hanxue/homebrew,scorphus/homebrew,ablyler/homebrew,sjackman/linuxbrew,filcab/homebrew,sakra/homebrew,dutchcoders/homebrew,royhodgman/homebrew,ear/homebrew,slyphon/homebrew,frodeaa/homebrew,gawbul/homebrew,frodeaa/homebrew,Asuranceturix/homebrew,3van/homebrew,influxdb/homebrew,booi/homebrew,ExtremeMan/homebrew,sjackman/linuxbrew,base10/homebrew,vigo/homebrew,georgschoelly/homebrew