X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-pull.sh;h=20a3bbea07c259ec1f19353b2888fde20e8b67da;hb=92c62a3;hp=8eb74d45debe7ab2bd2cc9b5ed57b1ba49d94bdb;hpb=ca209065f3cc3462eb0ae6090f6b13f38aa2114c;p=git.git diff --git a/git-pull.sh b/git-pull.sh index 8eb74d45d..20a3bbea0 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -201,10 +201,7 @@ test true = "$rebase" && { die "updating an unborn branch with changes added to the index" fi else - git update-index --ignore-submodules --refresh && - git diff-files --ignore-submodules --quiet && - git diff-index --ignore-submodules --cached --quiet HEAD -- || - die "refusing to pull with rebase: your working tree is not up-to-date" + require_clean_work_tree "pull with rebase" "Please commit or stash them." fi oldremoteref= && . git-parse-remote &&