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

Re: [PATCH] git-filter-branch.sh: Allow running in bare repositories

From
Petr Baudis <pasky@suse.cz>
Date
Jul 22, 2008, 23:36 UTC
Message-ID
<20080722233652.GT10151@machine.or.cz>
In-Reply-To
<alpine.DEB.1.00.0807230025050.8986@racer>
  Hi,
On Wed, Jul 23, 2008 at 12:27:07AM +0100, Johannes Schindelin wrote:
Show 8 quoted lines
> On Wed, 23 Jul 2008, Petr Baudis wrote:
> 
> > This also fixes suspicious shell boolean expression during a check
> > for dirty working tree.
> 
> If you are talking about X && Y || Z, it is well established (and should 
> not be suspicious to a shell hacker like the creator of Cogito) that Z is 
> executed if either X fails, or X succeeds and Y fails.
  um, oops. I actually never got to know these by heart since I learnt
to expliciply group the expressions early on. I guess my only excuse is
that I've stumbled at 0bdf93cbf earlier and understood it the _wrong_
way around since I'm getting really sleepy. ;-)
  I still think my change improves the code readibility so it could be
kept, but I'm fairly neutral on this.
Show 6 quoted lines
> > +test_expect_success 'rewrite bare repository identically' '
> > +	(git config core.bare true && cd .git && git-filter-branch branch)
> > +'
> > +git config core.bare false
> 
> Any reason why this is done outside the test?
  If the test fails in the middle, not resetting this might negatively
affect the rest of the testsuite.
-- 
				Petr "Pasky" Baudis
As in certain cults it is possible to kill a process if you know
its true name.  -- Ken Thompson and Dennis M. Ritchie
Previous: Johannes SchindelinNext: Junio C Hamano
Message 3 of 10 in “git-filter-branch.sh: Allow running in bare repositories”
  1. git-filter-branch.sh: Allow running in bare repositoriesPetr Baudis, Jul 22, 2008
  2. Johannes SchindelinJul 22, 2008
  3. Petr BaudisJul 22, 2008
  4. Junio C HamanoJul 23, 2008
  5. git-filter-branch.sh: Allow running in bare repositoriesPetr Baudis, Jul 23, 2008
  6. Johannes SchindelinJul 23, 2008
  7. Petr BaudisJul 23, 2008
  8. [PATCHv3] git-filter-branch.sh: Allow running in bare repositoriesPetr Baudis, Jul 23, 2008
  9. Junio C HamanoJul 23, 2008
  10. Junio C HamanoJul 23, 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.