Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brew install => error: Not a valid ref: refs/remotes/origin/master #13029

Closed
2 tasks done
rvong opened this issue Mar 22, 2022 · 4 comments
Closed
2 tasks done

Brew install => error: Not a valid ref: refs/remotes/origin/master #13029

rvong opened this issue Mar 22, 2022 · 4 comments
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age

Comments

@rvong
Copy link

rvong commented Mar 22, 2022

brew config output

n/a

brew doctor output

n/a

Verification

  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?

install brew

@Richards-MacBook-Air ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

What happened (include all command output)?

==> Downloading and installing Homebrew...
HEAD is now at 40e3a47 Merge pull request #13022 from Homebrew/update-man-completions
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

What did you expect to happen?

install works

Step-by-step reproduction instructions (by running brew commands)

@Richards-MacBook-Air ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@rvong rvong added the bug Reproducible Homebrew/brew bug label Mar 22, 2022
@MikeMcQuaid
Copy link
Member

n/a

That's because you didn't read the issue form which told you to post this elsewhere.

There's an issue with your internet connection to GitHub. Homebrew cannot do anything about this.

@MikeMcQuaid MikeMcQuaid closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2022
@rvong
Copy link
Author

rvong commented Mar 23, 2022

Where is elsewhere? If it's a GH issue, then there should be mirrors for the artifacts.

@MikeMcQuaid
Copy link
Member

Where is elsewhere?

The install repository. Don't create an issue there, though, because it'll be closed.

If it's a GH issue, then there should be mirrors for the artifacts.

If you're willing to work on this: awesome. This isn't something we have capacity to do.

@rvong
Copy link
Author

rvong commented Mar 24, 2022

This was fixed by runninguninstall, then retrying reinstall.

Something like:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

Quick scripts or common troubleshooting should be added to https://docs.brew.sh/ somewhere.
I found the solution in an issue on brew GH issues where someone replied to their own question with this solution.

@github-actions github-actions bot added the outdated PR was locked due to age label Apr 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

2 participants