summaryrefslogtreecommitdiff
path: root/exporters/darcs/t/testimport-copy.sh
blob: 109d87eb1381c496c9bc7995fdd7603f6050f4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
. ./lib.sh

rm -rf test
mkdir test
cd test
git init
echo a > file
git add file
git commit -m a1
cp file file2
git add file2
git commit -m b
cd ..

rm -rf test.darcs
mkdir test.darcs
cd test.darcs
darcs init
cd ..
(cd test; git fast-export -C -C HEAD) > out
cat out | (cd test.darcs; darcs-fast-import)
if [ $? != 0 ]; then
	exit 1
fi
diff_importgit test
exit $?