On Thu, 31 Mar 2011 09:01:13 -0700 (PDT)
romerve <rome...@gmail.com> wrote:

> > > I am new to Git and been using SVN for a little while. I have set
> > > up Git and i am trying to clone a project via http and i am
> > > getting:
> >
> > It seems you failed to paste what you're getting.
> >
> > > I also setup gitweb to see my projects via browser, everything is
> > > working except for 2 things.
> >
> > > 1.- when i do: git init to any folder, gitweb shows the new
> > > project but it shows it as "proj/.git" instead of just "proj"
> >
> > > and 2.- when i try to do: git clonehttp://git.mydomain.com/proj i
> > > get: "warning: remote HEAD refers to nonexistent ref, unable to
> > > checkout."
> >
> > Most probably this happens because you've attempted to clone an
> > empty repository, that is, a repository without any commits
> > recorded yet. The explanation of why this happens is at [1].  I'm
> > also quite confident the first problem (with gitweb's display of
> > such repositories) exists due to the same reason.
> Well here is what i have done:
> cd webstore
> git init
> git add .
> git commit -a -m "initial commit"
> 
> 
> Then i go to git.mydomain.com and gitweb displays: "webstore/.git" and
> when i try to clone it:
> from remote client: git clone http://git.mydomain.com/webstore i get
> the warning:
> "warning: remote HEAD refers to nonexistent ref, unable to checkout."
> 
> So i know my project is not empty...

Okay, so may it be that the problem is rooted in that you have to jump
through a set of hoops to make "dumb" protocols like HTTP work [1]?
I think you could try to verify this hypothesis immediately by
attempting to clone via file:// protocol on that same host.

P.S.
Please don't top-post, it sucks big time.

1.
http://www.kernel.org/pub/software/scm/git/docs/githooks.html#post-update

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to