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

create_darcs test2 --darcs-2

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