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

Re: [PATCH 2/2 v2] run-command (Windows): Run dashless "git <cmd>" (solves part of problem with system_path)

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 29, 2008, 11:18 UTC
Message-ID
<alpine.DEB.1.00.0807291315140.4631@eeepc-johanness>
In-Reply-To
<10AD8BDA-72E8-437D-8CFC-CDD71BB016F8@zib.de>
Hi,
On Tue, 29 Jul 2008, Steffen Prohaska wrote:
Show 20 quoted lines
> On Jul 29, 2008, at 7:24 AM, Shawn O. Pearce wrote:
> 
> > Steffen Prohaska <prohaska@zib.de> wrote:
> > > We prefer running the dashless form, so we should use it in MinGW's 
> > > start_command(), too.
> > ...
> > > - We have non-builtins that are implemented in C, e.g. fast-import.c.
> > >   These non-builtins will still compute wrong paths.
> >
> > This feels wrong to me.  fast-import probably won't be adversly 
> > impacted by not being able to read /etc/gitconfig, unless the user has 
> > set something like core.deltaBaseCacheLimit and is doing an 
> > incremental import.  But other non-builtins may be impacted.
> >
> > It feels like we're fixing this in the wrong place.  If the issue is 
> > we don't find our installation directory correctly, we should find our 
> > installation directory correctly, not work around it by calling 
> > builtins through the git wrapper.
> 
> For builtins it is not a work around but a real solution.

No, it is not a real solution. At least not for the goal you stated: getting the correct "toplevel" directory. It is a workaround, because it avoids the builtins being called as proper programs (which they should be perfectly capable of, and which scripts still _are allowed to do_).

However, it is a solution. To a totally other problem, namely "I would like to be able _not_ to install the builtins into the exec-path". Sure, you break a few scripts that rely on the builtins being callable in the dash-form, but at least the scripts we ship in git.git are safe.

Ciao, Dscho

Previous: Steffen Prohaska
Message 9 of 9 in “run-command (Windows): Run dashless "git <cmd>" (solves part of problem with system_path)”
  1. 2/2 run-command (Windows): Run dashless "git <cmd>" (solves part of problem with system_path)Steffen Prohaska, Jul 29, 2008
  2. [FOR DEBUGGING] Stop installing BUILT_INSSteffen Prohaska, Jul 29, 2008
  3. Shawn O. PearceJul 29, 2008
  4. Junio C HamanoJul 29, 2008
  5. Steffen ProhaskaJul 29, 2008
  6. Johannes SchindelinJul 29, 2008
  7. Steffen ProhaskaJul 29, 2008
  8. Steffen ProhaskaJul 29, 2008
  9. Johannes SchindelinJul 29, 2008

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.