summaryrefslogtreecommitdiff
path: root/exporters/darcs/t/test-git.sh
blob: de504ee773a17b61c1f5ae5557d6ff6a874f8a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
. ./lib.sh

create_darcs test --old-fashioned-inventory

rm -rf test.darcs test.git
mkdir test.git
cd test.git
git --bare init
cd ..
if [ "$1" != "--stdout" ]; then
	darcs-fast-export test |(cd test.git; git fast-import)
	if [ $? = 0 ]; then
		diff_git test
		exit $?
	fi
else
	darcs-fast-export test
fi