darn... git 1.7+ puts out different messages on clone...

This commit is contained in:
Sitaram Chamarty 2010-07-16 11:25:31 +05:30
parent bdb7cd6903
commit e9787b03f8
7 changed files with 17 additions and 17 deletions

View file

@ -19,7 +19,7 @@ expect "remote: Initialized empty Git repository in /home/gitolite-test/reposito
name "basic clone" name "basic clone"
cd ~/td cd ~/td
runlocal git clone u1:aa u1aa runlocal git clone u1:aa u1aa
expect "Initialized empty Git repository in /home/tester/td/u1aa/.git/" expect "Cloning into u1aa..."
expect "warning: You appear to have cloned an empty repository" expect "warning: You appear to have cloned an empty repository"
runlocal ls -ald u1aa runlocal ls -ald u1aa
expect "drwxr-xr-x 3 $USER $USER 4096 201.-..-.. ..:.. u1aa" expect "drwxr-xr-x 3 $USER $USER 4096 201.-..-.. ..:.. u1aa"

View file

@ -142,7 +142,7 @@ repo r1
notexpect ABORT notexpect ABORT
cd ~/td cd ~/td
runlocal git clone gitolite:r1 runlocal git clone gitolite:r1
expect "Initialized empty Git repository in /home/tester/td/r1/.git/" expect "Cloning into r1..."
cd ~/td/r1 cd ~/td/r1
mdc; mdc; mdc mdc; mdc; mdc
mdc; mdc; mdc mdc; mdc; mdc
@ -163,7 +163,7 @@ repo r2
notexpect ABORT notexpect ABORT
cd ~/td cd ~/td
runlocal git clone gitolite:r2 runlocal git clone gitolite:r2
expect "Initialized empty Git repository in /home/tester/td/r2/.git/" expect "Cloning into r2..."
cd ~/td/r2 cd ~/td/r2
mdc; mdc; mdc mdc; mdc; mdc
mdc; mdc; mdc mdc; mdc; mdc

View file

@ -52,7 +52,7 @@ expect "\* \[new branch\] master -> master"
name "u1 clone success" name "u1 clone success"
cd ~/td cd ~/td
runlocal git clone u1:foo/u4/a12 u1a12 runlocal git clone u1:foo/u4/a12 u1a12
expect "Initialized empty Git repository in /home/tester/td/u1a12/.git/" expect "Cloning into u1a12..."
name "u1 push fail" name "u1 push fail"
cd ~/td/u1a12 cd ~/td/u1a12
@ -63,7 +63,7 @@ expect "W access for foo/u4/a12 DENIED to u1"
name "u2 clone success" name "u2 clone success"
cd ~/td cd ~/td
runlocal git clone u2:foo/u4/a12 u2a12 runlocal git clone u2:foo/u4/a12 u2a12
expect "Initialized empty Git repository in /home/tester/td/u2a12/.git/" expect "Cloning into u2a12..."
name "u2 push success" name "u2 push success"
cd ~/td/u2a12 cd ~/td/u2a12
@ -113,7 +113,7 @@ expect_filesame $TESTDIR/out/t04-wild1.2
name "u5 clone success" name "u5 clone success"
cd ~/td cd ~/td
runlocal git clone u5:foo/u4/a12 u5a12 runlocal git clone u5:foo/u4/a12 u5a12
expect "Initialized empty Git repository in /home/tester/td/u5a12/.git/" expect "Cloning into u5a12..."
name "u5 push fail" name "u5 push fail"
cd ~/td/u5a12 cd ~/td/u5a12
@ -124,7 +124,7 @@ expect "W access for foo/u4/a12 DENIED to u5"
name "u6 clone success" name "u6 clone success"
cd ~/td cd ~/td
runlocal git clone u6:foo/u4/a12 u6a12 runlocal git clone u6:foo/u4/a12 u6a12
expect "Initialized empty Git repository in /home/tester/td/u6a12/.git/" expect "Cloning into u6a12..."
name "u6 push success" name "u6 push success"
cd ~/td/u6a12 cd ~/td/u6a12

View file

@ -50,7 +50,7 @@ expect "\* \[new branch\] master -> master"
name "u1 clone success" name "u1 clone success"
cd ~/td cd ~/td
runlocal git clone u1:foo/u4/a12 u1a12 runlocal git clone u1:foo/u4/a12 u1a12
expect "Initialized empty Git repository in /home/tester/td/u1a12/.git/" expect "Cloning into u1a12..."
name "u1 push fail" name "u1 push fail"
cd ~/td/u1a12 cd ~/td/u1a12
@ -61,7 +61,7 @@ expect "W access for foo/u4/a12 DENIED to u1"
name "u2 clone success" name "u2 clone success"
cd ~/td cd ~/td
runlocal git clone u2:foo/u4/a12 u2a12 runlocal git clone u2:foo/u4/a12 u2a12
expect "Initialized empty Git repository in /home/tester/td/u2a12/.git/" expect "Cloning into u2a12..."
name "u2 push success" name "u2 push success"
cd ~/td/u2a12 cd ~/td/u2a12
@ -111,7 +111,7 @@ expect_filesame $TESTDIR/out/t04-wild1.2
name "u5 clone success" name "u5 clone success"
cd ~/td cd ~/td
runlocal git clone u5:foo/u4/a12 u5a12 runlocal git clone u5:foo/u4/a12 u5a12
expect "Initialized empty Git repository in /home/tester/td/u5a12/.git/" expect "Cloning into u5a12..."
name "u5 push fail" name "u5 push fail"
cd ~/td/u5a12 cd ~/td/u5a12
@ -122,7 +122,7 @@ expect "W access for foo/u4/a12 DENIED to u5"
name "u6 clone success" name "u6 clone success"
cd ~/td cd ~/td
runlocal git clone u6:foo/u4/a12 u6a12 runlocal git clone u6:foo/u4/a12 u6a12
expect "Initialized empty Git repository in /home/tester/td/u6a12/.git/" expect "Cloning into u6a12..."
name "u6 push success" name "u6 push success"
cd ~/td/u6a12 cd ~/td/u6a12

View file

@ -36,7 +36,7 @@ notexpect "failed to push"
cd ~/td cd ~/td
runlocal git clone u1:abc runlocal git clone u1:abc
expect "Initialized empty Git repository in /home/tester/td/abc/.git/" expect "Cloning into abc..."
cd ~/td/abc cd ~/td/abc
mdc jfile; runlocal git push origin master mdc jfile; runlocal git push origin master
expect "To u1:abc" expect "To u1:abc"

View file

@ -37,7 +37,7 @@ do
name "push" name "push"
cd ~/td cd ~/td
runlocal git clone u2:foo/u1/bar u2bar runlocal git clone u2:foo/u1/bar u2bar
expect "Initialized empty Git repository in /home/tester/td/u2bar/.git/" expect "Cloning into u2bar..."
cd u2bar cd u2bar
mdc u2file1 mdc u2file1
runlocal git push runlocal git push
@ -66,7 +66,7 @@ do
cd ~/td cd ~/td
runlocal git clone u1:foo/u1/bar runlocal git clone u1:foo/u1/bar
expect "Initialized empty Git repository in /home/gitolite-test/repositories/foo/u1/bar.git/" expect "Cloning into bar..."
cd bar cd bar
mdc u1file1 mdc u1file1
@ -83,7 +83,7 @@ do
name "push" name "push"
cd ~/td cd ~/td
runlocal git clone u2:foo/u1/bar u2bar runlocal git clone u2:foo/u1/bar u2bar
expect "Initialized empty Git repository in /home/tester/td/u2bar/.git/" expect "Cloning into u2bar..."
cd u2bar cd u2bar
mdc u2file1 mdc u2file1
runlocal git push runlocal git push

View file

@ -34,14 +34,14 @@ do
name "u1 info" name "u1 info"
runlocal ssh u1 info runlocal ssh u1 info
expect "hello u1, the gitolite version here is v" expect "hello u1, the gitolite version here is"
expect "@R.*@W.*testing" expect "@R.*@W.*testing"
[ "$wr" = "1" ] && expect "C.*R.*W.*foo/u1/\\.\\+" [ "$wr" = "1" ] && expect "C.*R.*W.*foo/u1/\\.\\+"
name "u1 expand" name "u1 expand"
runlocal ssh u1 expand runlocal ssh u1 expand
[ "$wr" = "0" ] && expect "wildrepos disabled, sorry" [ "$wr" = "0" ] && expect "wildrepos disabled, sorry"
[ "$wr" = "1" ] && expect "hello u1, the gitolite version here is v" [ "$wr" = "1" ] && expect "hello u1, the gitolite version here is"
[ "$wr" = "1" ] && expect "R.*W.*(u1).*foo/u1/bar" [ "$wr" = "1" ] && expect "R.*W.*(u1).*foo/u1/bar"
[ "$wr" = "1" ] && expect "@R.*@W.*testing" [ "$wr" = "1" ] && expect "@R.*@W.*testing"