summaryrefslogtreecommitdiff
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-03-12 21:46:50 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-03-12 21:46:50 -0700
commit532b74b2104bd00cbaa99e726e6a7b8997f48744 (patch)
tree0405c0e59f424878a3d4acc693c7ddac46bf3ab1 /git-filter-branch.sh
parentMerge branch 'gt/maint-1.6.1-utf8-width' into maint-1.6.1 (diff)
parentfilter-branch: do not consider diverging submodules a 'dirty worktree' (diff)
downloadtgif-532b74b2104bd00cbaa99e726e6a7b8997f48744.tar.xz
Merge branch 'js/maint-1.6.1-filter-branch-submodule' into maint-1.6.1
* js/maint-1.6.1-filter-branch-submodule: filter-branch: do not consider diverging submodules a 'dirty worktree'
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 56d1bd0f99..0897b5971a 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -98,7 +98,7 @@ OPTIONS_SPEC=
. git-sh-setup
if [ "$(is_bare_repository)" = false ]; then
- git diff-files --quiet &&
+ git diff-files --ignore-submodules --quiet &&
git diff-index --cached --quiet HEAD -- ||
die "Cannot rewrite branch(es) with a dirty working directory."
fi