Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundler error message "Revision master does not exist in the repository"

When trying to install the gem "u2f" from the repo at "castle/ruby-u2f" I get an error message:

Fetching git://github.com/castle/ruby-u2f.git
fatal: Needed a single revision
Revision master does not exist in the repository git://github.com/castle/ruby-u2f.git. Maybe you misspelled it?

I cannot find any information about this error message. The text does not appear in any of the bundler source files, so I don't even know where to start debugging.

If anyone has any insight into the source and cause of this error, I'd love to know.

like image 710
Les Nightingill Avatar asked Aug 19 '16 01:08

Les Nightingill


2 Answers

If you're trying to install a gem from a github source and got this, it may be because the repo changed its default branch from "master" to "main". Try adding branch: 'main' and see if it works.

like image 183
Matheus Richard Avatar answered Nov 02 '22 09:11

Matheus Richard


Try pulling from the master branch

like image 1
teddybear Avatar answered Nov 02 '22 11:11

teddybear