git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-http-push / webDAV

From
EREygene Ryabinkin <rea-git@codelabs.ru>
Date
Oct 2, 2007, 10:46 UTC
Message-ID
<20071002104646.GY975@void.codelabs.ru>
In-Reply-To
<470215F6.2060105@jentro.com>
Thomas,
Tue, Oct 02, 2007 at 11:57:10AM +0200, Thomas Pasch wrote:
Show 20 quoted lines
> well, *somewhat* better with the trailing slash:
> 
> > echo "modified" >>grep.c
> > git commit -a
> Created commit e147e54: mod
>  1 files changed, 1 insertions(+), 0 deletions(-)
> > git push -v
> Pushing to http://test@192.1.1.184/git/git.git/
> Fetching remote heads...
>   refs/
>   refs/heads/
>   refs/tags/
> updating 'refs/heads/master'
>   from 34c6dbdef439f7cd93d3fe22493a3c1496ce96f7
>   to   e147e54b14828fa2e88e88907e0ca4dc3d694448
>     sending 3 objects
>     done
> Updating remote server info
> 
> There's no more error message.

OK, that's fine: the previous error was tied to the fact that when you're getting /git/git.git from the Web-server, it notices that it is a directory and redirects you to the /git/git.git/. But (IIRC) curl does not follow such redirections.

Show 22 quoted lines
> However, push has still
> not worked. If I try to check out the new HEAD:
> 
> > git clone http://test@192.1.1.184/git/git.git/
> Initialized empty Git repository in /home/tpasch/tmp/git/.git/
> Getting alternates list for http://test@192.1.1.184/git/git.git
> Getting pack list for http://test@192.1.1.184/git/git.git
> Getting index for pack 563e2090185692c7d765775569a0ce986840fd17
> Getting pack 563e2090185692c7d765775569a0ce986840fd17
>  which contains 3af9d3e08da868c3a7687ab38d72f4296a99005d
> [...]
> walk 24778e335a6450e34257a311d0bf4a12bdb3006c
> walk 19b2860cba5742ab31fd682b80fefefac19be141
> walk bf0c6e839c692142784caf07b523cd69442e57a5
> walk e497ea2a9b6c378f01d092c210af20cbee762475
> walk 8bc9a0c769ac1df7820f2dbf8f7b7d64835e3c68
> walk e83c5163316f89bfbde7d9ab23ca2e25604af290
> Getting alternates list for http://test@192.1.1.184/git/git.git
> Getting pack list for http://test@192.1.1.184/git/git.git
> error: Unable to find e147e54b14828fa2e88e88907e0ca4dc3d694448 under
> http://test@192.1.1.184/git/git.git
> Cannot obtain needed object e147e54b14828fa2e88e88907e0ca4dc3d694448

OK, I will try to do this on my server with 2.2.6. How big is your repository? Both size and commit number.

Thanks.
-- 
Eygene
Previous: Thomas PaschNext: Thomas Pasch
Message 6 of 8 in “git-http-push / webDAV”
  1. Thomas PaschOct 1, 2007
  2. Eygene RyabinkinOct 1, 2007
  3. Thomas PaschOct 2, 2007
  4. Eygene RyabinkinOct 2, 2007
  5. Thomas PaschOct 2, 2007
  6. Eygene RyabinkinOct 2, 2007
  7. Thomas PaschOct 2, 2007
  8. Thomas PaschOct 9, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.