GithubHelp home page GithubHelp logo

Comments (10)

harrygallagher4 avatar harrygallagher4 commented on July 20, 2024

I had the same error. It looks like the repo just changed the default branch to main instead of master. I'm not a git expert, but managed to fix it by manually checking out main locally and changing HEAD.

(some of these commands may be unnecessary)

cd /usr/local/Homebrew/Library/Taps/homebrew-ffmpeg/homebrew-ffmpeg
git fetch
git checkout main
git remote prune origin
git branch -D master

Then replacing "master" with "main" in .git/refs/remotes/origin/HEAD which is probably not the best idea, but it worked.

from homebrew-ffmpeg.

slhck avatar slhck commented on July 20, 2024

Thanks for reporting this issue. I'm surprised that they'd do this to existing repos. This is bound to break much more stuff.

I'm inclined to rename it back to master just to prevent further issues. But then again this should be fixed in brew itself, no?

from homebrew-ffmpeg.

slhck avatar slhck commented on July 20, 2024

A workaround is suggested here:

brew untap -f homebrew-ffmpeg/ffmpeg
brew tap homebrew-ffmpeg/ffmpeg

from homebrew-ffmpeg.

slhck avatar slhck commented on July 20, 2024

As a quick fix, I've renamed main back to master. I do not want to force our users to manually fix something that brew apparently cannot handle yet.

If this issue persists please reopen.

from homebrew-ffmpeg.

retokromer avatar retokromer commented on July 20, 2024

@slhck master is considered a racist term. I guess the recommended fix is:

cd $(brew --repo homebrew-ffmpeg/ffmpeg)
git branch -m master main
git fetch origin
git branch -u origin/main main

Yet, of course, I agree with renaming back!

from homebrew-ffmpeg.

slhck avatar slhck commented on July 20, 2024

I am aware of the possible/recommended fix, but that seems like a complicated workaround.

I would like to avoid going into the discussion behind the naming of the branch; that ship has sailed and there are other opinions, too. My personal opinion does not matter and should not matter (white cis-male speaking here), but what I can observe is that this action will lead to unforeseen behavior that will ultimately confuse end users.

I have no issue with going forward with a different default name (like for git or new GitHub projects), but switching the branch on existing projects is – as demonstrated by this issue – not a good solution.

Let's wait until brew or git can handle this transparently, then we can of course rename the branch.

from homebrew-ffmpeg.

retokromer avatar retokromer commented on July 20, 2024

I am aware of the possible/recommended fix, but that seems like a complicated workaround.

Indeed! I fully agree with you.

from homebrew-ffmpeg.

jennifert avatar jennifert commented on July 20, 2024

Ah, i see. Thank you for explaining! Its working now, though I should have tried the untap, I was thinking of it, but then was not sure. Thank you all for the help! :)

from homebrew-ffmpeg.

slhck avatar slhck commented on July 20, 2024

@retokromer Just to make sure, did you change the branch name or was it done automatically?

from homebrew-ffmpeg.

sjackman avatar sjackman commented on July 20, 2024

brew tap --repair should fix that, and brew update should detect the rename and instruct a user to run brew tap --repair.

See Homebrew/brew#10424 (comment)

from homebrew-ffmpeg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.