Closed chdiza closed 7 years ago
git clone --depth 1 https://github.com/Homebrew/brew hb (or "homebrew")
If you clone with --depth 1
we cannot get the tags for the repository version. I've opened https://github.com/Homebrew/install/pull/110 to fix the installer default which did this.
I've also clarified the messaging in https://github.com/Homebrew/brew/pull/3188.
If you clone with --depth 1 we cannot get the tags for the repository version. I've opened Homebrew/install#110 to fix the installer default which did this.
I didn't run the installer, though, I just manually cloned the brew
repo and then the homebrew-core
repo.
(Side query: it's only the brew
repo that will get fully cloned, right? Not the homebrew-core
repo? The latter is a huge PITA to fully clone, particularly on initial setup.)
I didn't run the installer, though, I just manually cloned the brew repo and then the homebrew-core repo.
Wait, I'm probably being an idiot. Probably I will just be stuck with the wrong version output until enough brew updates
happen to force a fetching of the rest of the brew
repo, or until I manually perform such a fetch. That's fine, since it will probably happen within two or three brew update
s.
brew
command and notbrew install
ing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/newbrew update
and retried your prior step?brew doctor
, fixed all issues and retried your prior step?brew config
andbrew doctor
and included their output with your issue?I'm not sure when this started, but even from brand-new clones I get:
I don't know why it won't give the actual version number. I also don't know why it's saying "(no git repository)".
HOMEBREW_REPOSITORY
, which is/usr/local/homebrew
or/usr/local/hb
(doesn't matter which), does have a git repo in it.To reproduce:
Doctor says ready to brew. Config is here: