Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 6e97ef31ce20ff93a4cc0e3c6ab5171fd6dda5f3 authored by Junio C Hamano on 05 January 2011, 22:49:19 UTC
Git 1.7.3.5
Tip revision: 6e97ef3
t3509-cherry-pick-merge-df.sh
#!/bin/sh

test_description='Test cherry-pick with directory/file conflicts'
. ./test-lib.sh

test_expect_success SYMLINKS 'Setup rename across paths each below D/F conflicts' '
	mkdir a &&
	>a/f &&
	git add a &&
	git commit -m a &&

	mkdir b &&
	ln -s ../a b/a &&
	git add b &&
	git commit -m b &&

	git checkout -b branch &&
	rm b/a &&
	mv a b/a &&
	ln -s b/a a &&
	git add . &&
	git commit -m swap &&

	>f1 &&
	git add f1 &&
	git commit -m f1
'

test_expect_success SYMLINKS 'Cherry-pick succeeds with rename across D/F conflicts' '
	git reset --hard &&
	git checkout master^0 &&
	git cherry-pick branch
'

test_done
back to top