Merge branch 'maint'
[gc-utils.git] / tests / gc-update.sh
blob62b22162811b9c5cb5a96ee9a9dc6742e1d3e74e
1 #!/bin/bash
3 . setup.sh
5 cd $CVSCO
6 touch file4
7 cvs add file4
8 cvs commit -m "test commit"
10 echo "Test" > file4
11 cvs commit -m "test commit 2"
13 cd $ABSDIR
14 gc-import -v -d $GIT_DIR $CVSROOT $CVSMODULE
17 cd $CVSCO
18 echo "update commit" > file4
19 cvs commit -m "update commit" file4
21 cd $GCCO
22 gc-update -v
24 git log | grep "update commit" || failure "Update failed"
26 gc-update -V | grep "gc-utils: gc-update" || failure "-V switch failed"
29 cd $CVSCO
30 echo "merge commit" > file4
31 cvs commit -m "merge commit" file4
33 cd $GCCO
34 gc-update -m
36 git log | grep "merge commit" || failure "Update failed"