diff --git a/git-pull.sh b/git-pull.sh
index 5804c627cae7d81c321821b123387ddd5a21d7a7..eb87f49062b70d707adebca4013809822123608b 100755 (executable)
--- a/git-pull.sh
+++ b/git-pull.sh
--recurse-submodules)
recurse_submodules=--recurse-submodules
;;
+ --no-recurse-submodules)
+ recurse_submodules=--no-recurse-submodules
+ ;;
--d|--dr|--dry|--dry-|--dry-r|--dry-ru|--dry-run)
dry_run=--dry-run
;;
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 &&