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

Re: quick bare clones taking longer?

From
DMDavid Miller <davem@davemloft.net>
Date
May 9, 2007, 20:06 UTC
Message-ID
<20070509.130614.15589957.davem@davemloft.net>
In-Reply-To
<7vvef2t36n.fsf@assigned-by-dhcp.cox.net>
From: Junio C Hamano <junkio@cox.net>
Date: Wed, 09 May 2007 08:41:20 -0700
> There is something very wrong.  "-l -s" should never go to the
> "remote: Generating pack..." codepath.  Is that reproducible?
Every single time on master.kernel.org
> Could you try "sh -x git-clone" it?
Sure:
+ unset CDPATH
+ '[' -n '' ']'
+ quiet=
+ local=no
+ use_local=no
+ local_shared=no
+ unset template
+ no_checkout=
+ upload_pack=
+ bare=
+ reference=
+ origin=
+ origin_override=
+ use_separate_remote=t
+ depth=
+ no_progress=
+ test -t 1
+ case "$#,$1" in
+ bare=yes
+ shift
+ case "$#,$1" in
+ no_checkout=yes
+ shift
+ case "$#,$1" in
+ use_local=yes
+ shift
+ case "$#,$1" in
+ local_shared=yes
+ use_local=yes
+ shift
+ case "$#,$1" in
+ break
+ repo=../torvalds/linux-2.6.git
+ test -n ../torvalds/linux-2.6.git
+ test yes = yes
+ test yes = ''
+ no_checkout=yes
+ use_separate_remote=
+ test -z ''
+ origin=origin
++ get_repo_base ../torvalds/linux-2.6.git
+ base=
+ dir=test-2.6.git
+ '[' -z test-2.6.git ']'
+ '[' -e test-2.6.git ']'
+ mkdir -p test-2.6.git
++ cd test-2.6.git
++ pwd
+ D=/home/davem/git/test-2.6.git
+ trap 'err=$?; cd ..; rm -rf "$D"; exit $err' 0
+ case "$bare" in
+ GIT_DIR=/home/davem/git/test-2.6.git
+ export GIT_DIR
+ git-init
Initialized empty Git repository in /home/davem/git/test-2.6.git/
+ test -n ''
+ rm -f /home/davem/git/test-2.6.git/CLONE_HEAD
+ case "$local,$use_local" in
+ case "$repo" in
+ case "$upload_pack" in
+ git-fetch-pack --all -k ../torvalds/linux-2.6.git
remote: Generating pack...
etc.

Oh, /home/davem/git is a soft symlink to /pub/scm/linux/kernel/git/davem, maybe that is confusing git to make it think the repo is not local.

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 24 in “quick bare clones taking longer?”
  1. David MillerMay 9, 2007
  2. Johannes SchindelinMay 9, 2007
  3. Junio C HamanoMay 9, 2007
  4. David MillerMay 9, 2007
  5. Junio C HamanoMay 9, 2007
  6. David MillerMay 9, 2007
  7. Junio C HamanoMay 9, 2007
  8. David MillerMay 9, 2007
  9. Junio C HamanoMay 9, 2007
  10. Junio C HamanoMay 10, 2007
  11. Junio C HamanoMay 10, 2007
  12. David MillerMay 10, 2007
  13. Matthieu MoyMay 10, 2007
  14. Junio C HamanoMay 10, 2007
  15. Matthieu MoyMay 10, 2007
  16. Brian GernhardtMay 10, 2007
  17. Win32 version, was Re: quick bare clones taking longer?Johannes Schindelin, May 12, 2007
  18. Brian GernhardtMay 12, 2007
  19. Johannes SixtMay 10, 2007
  20. Dan NicholsonMay 10, 2007
  21. Junio C HamanoMay 10, 2007
  22. Dan NicholsonMay 10, 2007
  23. Junio C HamanoMay 10, 2007
  24. Andy WhitcroftMay 10, 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.