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

Re: [PATCH] setup.c: set workdir when gitdir is not default

From
Max Kirillov <max@max630.net>
Date
Sep 4, 2014, 14:23 UTC
Message-ID
<20140904142322.GB8894@wheezy.local>
In-Reply-To
<CAPig+cQMNyurCB73CzGBLcfXqap5=kZsYq0O8nD29S8QsHtrBA@mail.gmail.com>
On Thu, Sep 04, 2014 at 06:44:08AM -0400, Eric Sunshine wrote:
Show 8 quoted lines
> > +       mkdir -p subdir &&
> > +       cd subdir &&
> > +       git testalias
> 
> If a new test is added following this one, it will be run from within
> 'subdir', which might come as a surprise as the author of the new
> test. Wrapping the 'cd' and following code in a subshell is a good way
> to avoid the problem.

Sure, my mistake. Will fix this and the other issue you mentioned. Thank you.

-- 
Max
Previous: Eric SunshineNext: Duy Nguyen
Message 3 of 5 in “setup.c: set workdir when gitdir is not default”
  1. setup.c: set workdir when gitdir is not defaultMax Kirillov, Sep 3, 2014
  2. Eric SunshineSep 4, 2014
  3. Max KirillovSep 4, 2014
  4. Duy NguyenSep 4, 2014
  5. Max KirillovSep 4, 2014

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.