#!/bin/sh

test_description='rebase binary correctness test'

. ./test-lib.sh

yes 1234567 |head -n 2000 >text
cp text bin && printf 'binary\0data\n' >>bin

test_expect_success setup '

	cat text >file &&
	git add file &&
	git commit -m"text" &&

	git branch bin &&

	echo side >side &&
	git add side &&
	git commit -m"side" &&

	git checkout bin &&
	cat bin >file &&
	git commit -a -m"bin"
'

test_expect_success rebase '

	git rebase master &&
	cmp file bin
'

test_done
