Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-05 23:35:55 +0400
committerJunio C Hamano <gitster@pobox.com>2011-10-05 23:35:55 +0400
commit9c140016508fe7329d5aa962b473d8e84af108b1 (patch)
tree272d0bed97e4d5d269ce437cf0b8e54ab17f08dd /git-filter-branch.sh
parentc672f01c0410eef621b0df3574bfcfe433139f04 (diff)
parent5347a50fec066845e5dfa34a53cbec1ea347641d (diff)
Merge branch 'jk/filter-branch-require-clean-work-tree'
* jk/filter-branch-require-clean-work-tree: filter-branch: use require_clean_work_tree
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 804a7f4bc9..add2c0247f 100755
--- 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