diff options
Diffstat (limited to 'git-pull.sh')
| -rwxr-xr-x | git-pull.sh | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/git-pull.sh b/git-pull.sh index bf0c2985af..809e537a4d 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -107,6 +107,11 @@ error_on_no_merge_candidates () {  }  test true = "$rebase" && { +	git update-index --refresh && +	git diff-files --quiet && +	git diff-index --cached --quiet HEAD -- || +	die "refusing to pull with rebase: your working tree is not up-to-date" +  	. git-parse-remote &&  	origin="$1"  	test -z "$origin" && origin=$(get_default_remote)  | 
