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

Re: git http-push and MKCOL error (22/409)

From
TSThomas Schlichter <thomas.schlichter@web.de>
Date
Aug 17, 2009, 05:18 UTC
Message-ID
<200908170718.15423.thomas.schlichter@web.de>
In-Reply-To
<be6fef0d0908162152o54206acfge43f6ffa012bb307@mail.gmail.com>
Hi,
Am Montag 17 August 2009 06:52:32 schrieb Tay Ray Chuan:
Show 20 quoted lines
> Hi,
>
> On Sun, Aug 16, 2009 at 10:52 PM, Thomas
>
> Schlichter<thomas.schlichter@web.de> wrote:
> > Steps to reproduce:
>
> before I try this out, I have a few queries:
> >  1. locally set up a git archive:
> >     mkdir dummy.git
> >     cd dummy.git
> >     git init --bare
> >  2. Upload this directory to the server.
> >     I did do this using KDE's dolphin via WebDAV.
> >  3. Clone this remote repository:
> >     git clone https://webdav.smartdrive.web.de/dummy.git my_dummy
>
> You didn't run git update-server-info before doing the clone; cloning
> wouldn't work cos git can't find a info/refs file. Perhaps you did do
> it and unintentionally left it out from your procedure listed here?

Oh, yes, sorry. I did run it but unintentionally left it out. At least I had no problem with clone, it did clone an "empty repository" without a problem. Even during bisecting, I never had a problem with pulling from the server, only with pushing to it.

Show 6 quoted lines
> >  4. Create a local commit:
> >     cd my_dummy
> >     touch dummy.c
> >     git commit -a
>
> I assume you want to commit dummy.c?
Yes, indeed...
> But you didn't tell git to track
> it in the first place (git add dummy.c).
I think that was not neccessary,  the parameter "-a" should do it for me...
Show 6 quoted lines
> >  5. Push this commit up to the remote repository:
> >     git push origin master
>
> I also find it strange that git only pushed 1 object from your git
> push output, when usually there would be a tree, a blob and a commit
> to push for a new commit.

Yes, most of the times git tries to push three objects, and fails with all three. As I wrote, during bisecting I was able to commit several times. The reported message was the last one failing. Unfortunately git only needed to push one object that time. I didn't think it was important if it were three or just one object?!

Kind regards, Thomas Schlichter

Previous: Tay Ray ChuanNext: Thomas Schlichter
Message 5 of 12 in “git http-push and MKCOL error (22/409)”
  1. Thomas SchlichterAug 16, 2009
  2. Tay Ray ChuanAug 16, 2009
  3. Thomas SchlichterAug 16, 2009
  4. Tay Ray ChuanAug 17, 2009
  5. Thomas SchlichterAug 17, 2009
  6. Thomas SchlichterAug 17, 2009
  7. Junio C HamanoAug 16, 2009
  8. Tay Ray ChuanAug 17, 2009
  9. Thomas SchlichterAug 17, 2009
  10. Junio C HamanoAug 17, 2009
  11. Tay Ray ChuanAug 17, 2009
  12. Thomas SchlichterAug 17, 2009

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.