commit: --amend -m '' silently fails to wipe message
[gitweb.git] / git-stash.sh
index 0fddd5424b3846aaa6d9189841dae13c764468cd..23bd1d3db2a8097e901726add2476dd7090ee337 100755 (executable)
@@ -457,8 +457,6 @@ apply_stash () {
        assert_stash_like "$@"
 
        git update-index -q --refresh || die "$(gettext "unable to refresh index")"
-       git diff-index --cached --quiet --ignore-submodules HEAD -- ||
-               die "$(gettext "Cannot apply stash: Your index contains uncommitted changes.")"
 
        # current index state
        c_tree=$(git write-tree) ||