Skip to content

Commit

Permalink
Merge branch 'jk/filter-branch-require-clean-work-tree' into maint
Browse files Browse the repository at this point in the history
* jk/filter-branch-require-clean-work-tree:
  filter-branch: use require_clean_work_tree
  • Loading branch information
Junio C Hamano committed Oct 16, 2011
2 parents d7b7dd3 + 5347a50 commit 3197bd8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions git-filter-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3197bd8

Please sign in to comment.