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

Re: git-filter-branch exits early

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jul 11, 2007, 06:02 UTC
Message-ID
<81b0412b0707102302i34a51baax464f8c7c69087b7d@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.64.0707102222430.4047@racer.site>
On 7/10/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 14 quoted lines
> On Tue, 10 Jul 2007, Alex Riesen wrote:
>
> > I have a Debian system where git-filter-branch exits immediately after
> > "unset CDPATH" in git-sh-setup (the command exits with 1, as CDPATH is
> > not defined). The system still has bash-2.05a.
> >
> > git-filter-branch has "set -e", which is why the script finishes
> > prematurely. If this is not really needed, maybe it can be removed?
> >
> > I'll see if the system can be upgraded, but I suspect someone can get
> > a similar problem.
>
> I do not really understand why "unset CDPATH" should trigger an error.  I
> guess that this is one of the nice braindamages in dash, right?
in bash. Bash-2.05.a
> Anyway, "set -e" was one thing I wanted to fix. ...
BTW, what can break if I just go on and remove it?
> - since it is a C program, it should be more stable, eventually, than a
>   shell script, where you have to work around limitations all the time,
right :)
Previous: Johannes SchindelinNext: Sven Verdoolaege
Message 3 of 7 in “git-filter-branch exits early”
  1. Alex RiesenJul 10, 2007
  2. Johannes SchindelinJul 10, 2007
  3. Alex RiesenJul 11, 2007
  4. Sven VerdoolaegeJul 11, 2007
  5. filter-branch: get rid of "set -e"Johannes Schindelin, Jul 18, 2007
  6. David KastrupJul 18, 2007
  7. Johannes SchindelinJul 18, 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.