git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Hommey <mh@glandium.org>
To: Anatoly Yakovenko <aeyakovenko@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: cant get git to work over http
Date: Tue, 19 Feb 2008 10:39:45 +0100	[thread overview]
Message-ID: <20080219093943.GA31006@glandium.org> (raw)
In-Reply-To: <e26d18e40802182309l693b2099wb42573aca7348091@mail.gmail.com>

On Mon, Feb 18, 2008 at 11:09:39PM -0800, Anatoly Yakovenko <aeyakovenko@gmail.com> wrote:
> > > *.*.*.*- foobar [18/Feb/2008:16:40:12 -0800] "PROPFIND /git/repo
> > > HTTP/1.1" 301 320
> >
> > Try adding a / at the end of the url you use for your repo.
> 
> ah cool, that was it.  The initial push seems to have worked,
> 
> $ git push -v upload master
> Pushing to http://aeyakovenko@myserver.com/git/repo/
> Getting pack list
> Fetching remote heads...
>   refs/
>   refs/tags/
>   refs/heads/
> 'refs/heads/master': up-to-date
> 
> but i cant clone or just normally push and pull the repo.
> 
> $ git-pull
> fatal: 'origin': unable to chdir or not a git archive
> fatal: The remote end hung up unexpectedly

Try again with the GIT_CURL_VERBOSE variable set to 1 and try to see
if everything looks right in requests and responses.

> and
> 
> $ git-clone http://aeyakovenko@myserver.com/git/repo/ foobar
> Initialized empty Git repository in /home/aeyakovenko/projects/foobar/.git/
> cat: /home/aeyakovenko/projects/foobar/.git/refs/remotes/origin/master:
> No such file or directory
> /usr/bin/git-clone: line 450: cd:
> /home/aeyakovenko/projects/foobar/.git/refs/remotes/origin: No such
> file or directory
> fatal: : not a valid SHA1
> fatal: Not a valid object name HEAD

The error message is strange... Anyways, you might want to run this command
under sh -x (i.e. sh -x $(which git-clone) http://aeyakovenko@myserver.com/git/repo/ foobar)
What version of git are you using ?

Mike

  reply	other threads:[~2008-02-19  9:40 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-19  0:49 cant get git to work over http Anatoly Yakovenko
2008-02-19  6:39 ` Mike Hommey
2008-02-19  7:09   ` Anatoly Yakovenko
2008-02-19  9:39     ` Mike Hommey [this message]
2008-02-19 11:18     ` Johannes Schindelin
2008-02-19 18:19       ` Anatoly Yakovenko
2008-02-19 18:24         ` Jon Loeliger
2008-02-19 19:06           ` Anatoly Yakovenko
2008-02-19 19:19             ` Johannes Schindelin
2008-02-19 19:27               ` Anatoly Yakovenko
2008-02-19 19:41                 ` Johannes Schindelin
2008-02-19 19:53                   ` Anatoly Yakovenko
2008-02-19 19:57                     ` Johannes Schindelin
2008-02-19 19:57                     ` Jeff King
2008-02-19 20:05                     ` Jon Loeliger
2008-02-19 21:05                       ` Anatoly Yakovenko
2008-02-19 21:55                         ` Jon Loeliger
2008-02-19 21:59                           ` Anatoly Yakovenko
2008-02-19 22:13                             ` Anatoly Yakovenko
2008-02-19 22:20                               ` Johannes Schindelin
2008-02-20 13:46                               ` Anton Gladkov
2008-02-20 10:39                     ` Robert Haines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080219093943.GA31006@glandium.org \
    --to=mh@glandium.org \
    --cc=aeyakovenko@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).