Re: [PATCH] git-filter-branch.sh: Allow running in bare repositories
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 23, 2008, 21:59 UTC
- Message-ID
- <alpine.DEB.1.00.0807232257500.8986@racer>
- In-Reply-To
- <20080723215509.32438.49155.stgit@localhost>
Hi,
On Wed, 23 Jul 2008, Petr Baudis wrote:
Show 5 quoted lines
> Commit 46eb449c restricted git-filter-branch to non-bare repositories > unnecessarily; git-filter-branch can work on bare repositories just > fine. > > Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Funny, I did not get Cc:ed.
Show 6 quoted lines
> -git diff-files --quiet && > - git diff-index --cached --quiet HEAD -- || > - die "Cannot rewrite branch(es) with a dirty working directory." > +if [ "$(is_bare_repository)" = false ]; then > + git diff-files --quiet && > + git diff-index --cached --quiet HEAD --) ||
^
I doubt this has ever passed the test suite, let alone run.
Besides, this extra-funny extra indent is quite brutal on my eyes.
Ciao, Dscho