Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 6bf035f2780bde45682e0edf40e35a150bd83706 authored by Junio C Hamano on 18 March 2007, 21:40:35 UTC
GIT 1.5.0.5
Tip revision: 6bf035f
t5520-pull.sh
#!/bin/sh

test_description='pulling into void'

. ./test-lib.sh

D=`pwd`

test_expect_success setup '

	echo file >file &&
	git add file &&
	git commit -a -m original

'

test_expect_success 'pulling into void' '
	mkdir cloned &&
	cd cloned &&
	git init &&
	git pull ..
'

cd "$D"

test_expect_success 'checking the results' '
	test -f file &&
	test -f cloned/file &&
	diff file cloned/file
'

test_done

back to top