Skip to content
Snippets Groups Projects
Commit 610ea06d48c5 authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

tests: make git protocol test more focused

parent f1851e3df801
No related branches found
No related tags found
1 merge request!127Remove some unnecessary caching
......@@ -3,9 +3,10 @@
Load commonly used test logic
$ . "$TESTDIR/testutil"
$ git init test
Initialized empty Git repository in $TESTTMP/test/.git/
Create a dummy repository and serve it
$ git init -q test
$ cd test
$ echo foo > foo
$ git add foo
$ fn_git_commit -m test
......@@ -8,9 +9,8 @@
$ cd test
$ echo foo > foo
$ git add foo
$ fn_git_commit -m test
$ cd $TESTTMP
$ git daemon --listen=localhost --port=$HGPORT \
> --pid-file=$DAEMON_PIDS --detach --export-all --verbose \
> --base-path=$TESTTMP \
> || exit 80
......@@ -13,7 +13,8 @@
$ git daemon --listen=localhost --port=$HGPORT \
> --pid-file=$DAEMON_PIDS --detach --export-all --verbose \
> --base-path=$TESTTMP \
> || exit 80
$ cd ..
Make sure that clone over the old git protocol doesn't break
......@@ -17,5 +18,5 @@
Make sure that clone over the old git protocol doesn't break
$ hg clone git://localhost:$HGPORT/test copy 2>&1
$ hg clone -U git://localhost:$HGPORT/test copy 2>&1
importing git objects into hg
......@@ -21,5 +22,3 @@
importing git objects into hg
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ ls copy
foo
$ hg id -r tip copy
c4d188f6e13d default/master/tip master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment