What does this mean? Cannot get remote repository information. Perhaps git-update-server-info needs to be run there?

What does this mean? Cannot get remote repository information. Perhaps git-update-server-info needs to be run there?

git clone http://projects.iplantcollaborative.org/public/FoundationalAPI/SampleCode
Initialized empty Git repository in /homes/user/SampleCode/.git/
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?

Answers


In order to serve up a repository for pulling, various metadata files need to exist that do not exist in a standard on-disk git repository. This error message is indicating that in order to populate these files, you need to run git update-server-info on the server which is hosting the repository.

This assumes that this is your server, and that the repository exists. In the example you post above, there's not actually a git repository there at all. (In fact, there's nothing there at all.)


Try updating the version of Git that you are using locally. This is usually a problem with the older dumb HTTP protocol. If that doesn't fix it, and if you have control over the server, see the version of git on it and the setup for HTTP serving of the repo. It should be using smart HTTP. There is no point in using the older dumb HTTP protocol. See if you can update the git version on the server and have it setup with smart HTTP.


As noted by others there are two problems.

  1. The URL does not point to a Git archive.
  2. Even if it did, you might receive the same warning using old versions of Git.

If you are disinclined to update Git because you are working on someone else's cluster (a guess, because of the iPlant links), try replacing git clone http://... with git clone git://.... This worked for me using Git 1.5.5.6 on Lonestar at TACC (an iPlant HPC resource).


Need Your Help

Java Remote Debugging With No Main Method

java eclipse remote-debugging

I am developing extension classes in Java for a point of sale system. The POS software calls my Java class, so the code I am writing has no main method. Also, the POS software has to be run on a re...

Removing all dynamic 'data attributes' of an Element

javascript jquery html html5 custom-data-attribute

I have a div where dynamic data- attributes get added on some tags.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.