Merge branch 'maint'
[gc-utils.git] / tests / depth.sh
blob2285c93d5447ef408f379c86327ca30fe68ed611
1 #!/bin/bash
3 . setup.sh
5 cd $CVSCO
6 touch file4
7 cvs add file4
8 cvs commit -m "test commit"
10 cd $ABSDIR
11 gc-import -v -d $GIT_DIR $CVSROOT $CVSMODULE
13 cd $GCCO
14 mkdir -p test/foo/bar/
15 cd test/foo/bar/
17 git log
19 gc-update
21 git log | grep "test commit" || failure "Update from a subdirectory failed"
23 echo "FooBar" >> $GCCO/file4
25 git commit -m 'update commit from git' $GCCO/file4
27 gc-commit -c `git rev-list -n 1 HEAD` | grep "Committed successfully to CVS" || failure "Update from a subdirectory failed"