зеркало из https://github.com/microsoft/git.git
Merge branch 'jk/filter-branch-require-clean-work-tree' into maint
* jk/filter-branch-require-clean-work-tree: filter-branch: use require_clean_work_tree
This commit is contained in:
Коммит
3197bd850b
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче