Merge branch 'maint'
[gc-utils.git] / tests / gc-update-cn.sh
blob18ca4a539fe62eb7883079a690c5371d989abc7d
1 #!/bin/bash
3 . setup.sh
5 cd $ABSDIR
6 gc-import -v -d $GIT_DIR $CVSROOT $CVSMODULE
8 cd $CVSCO
9 touch file4
10 cvs add file4
11 cvs commit -m "update commit"
13 cd $GCCO
14 ls .cvs
15 gc-update -cn -v
17 (ls .cvs | grep file4 > /dev/null) && failure "file4 not expected, but it was added by gc-update in .cvs"
19 gc-update -v
20 (ls .cvs | grep file4 > /dev/null) || failure "file4 expected, but it's not here, either -cn or the normal gc-update is broken"
21 sucess