From: Matthieu Moy Date: Fri, 02 Sep 2011 05:52:16 GMT Subject: Re: Cannot rewrite branch(es) with a dirty working directory Message-ID: In-Reply-To: <20110901215306.GD16308@sigill.intra.peff.net> Jeff King writes: > --- a/git-filter-branch.sh > +++ b/git-filter-branch.sh > @@ -108,9 +108,7 @@ OPTIONS_SPEC= > . git-sh-setup > > if [ "$(is_bare_repository)" = false ]; then > - git diff-files --ignore-submodules --quiet && > - git diff-index --cached --quiet HEAD -- || > - die "Cannot rewrite branch(es) with a dirty working directory." > + require_clean_work_tree 'rewrite branches' > fi > > tempdir=.git-rewrite Sounds good, yes. -- Matthieu Moy http://www-verimag.imag.fr/~moy/