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

Re: quick bare clones taking longer?

From
DNDan Nicholson <dbn.lists@gmail.com>
Date
May 10, 2007, 22:08 UTC
Message-ID
<91705d080705101508y26eabb37oaf90aa4d9a7e239a@mail.gmail.com>
In-Reply-To
<7vbqgsibrr.fsf@assigned-by-dhcp.cox.net>
On 5/10/07, Junio C Hamano <junkio@cox.net> wrote:
Show 16 quoted lines
> Dan Nicholson <dbn.lists@gmail.com> writes:
>
> > In fact, all POSIX shells should support `cd -P' according to the spec, so it
> > should probably just be used directly instead of hoping that /bin/pwd exists.
> >
> > (cd -P "$1" && (cd .git ; pwd)) 2>/dev/null
> >
> > http://www.opengroup.org/onlinepubs/009695399/utilities/cd.html
>
> Yes but no ;-).  I've said this a few times on the list in the
> past, but I'll repeat it again for new people.
>
> We reject something whose portability in question by saying
> "It's not _even in_ POSIX".  We on the other hand try to refrain
> from saying "POSIX says you are supposed to have it, so screw
> people that are not fully POSIX".

Yes, I suppose. At the same time, git already implicitly requires more than, say, a Bourne shell. Functions, $( ) command substitution, ${} parameter expansion, $(( )) arithmetic expansion, etc. These are all standard in a POSIX shell, but may or may not exist in other shell variants.

-- Dan

Previous: Junio C HamanoNext: Junio C Hamano
Message 22 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.