Merge branch 'maint'
[gc-utils.git] / tests / gc-import-r.sh
blob8ebeaa6dab3f3c7d69318e790178d5316e5dc886
1 #!/bin/bash
3 . setup.sh
5 ##############
6 # TEST COMMIT
7 # AND IMPORT
9 cd $CVSCO
10 touch file4
11 cvs add file4
12 cvs commit -m "test commit"
14 echo "Test" > file4
15 cvs commit -m "test commit 2"
17 cd $ABSDIR
18 gc-import -v -d $GIT_DIR $CVSROOT $CVSMODULE
20 cd $GCCO
21 git branch -r | grep "cvs" || failure "Branch not found"
23 rm -rf $GCCO
25 cd $ABSDIR
26 gc-import -r foobar -v -d $GIT_DIR $CVSROOT $CVSMODULE
28 cd $GCCO
29 git branch -r | grep "foobar" || failure "Branch not found"