diff --git a/tests/test-conflict-1.t b/tests/test-conflict-1.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1jb25mbGljdC0xLnQ=..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1jb25mbGljdC0xLnQ= 100755
--- a/tests/test-conflict-1.t
+++ b/tests/test-conflict-1.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -57,5 +54,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -61,10 +57,4 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
 
   $ cd hgrepo1
   $ hg bookmark -r tip master
@@ -68,9 +58,9 @@
 
   $ cd hgrepo1
   $ hg bookmark -r tip master
-  $ hg push -r master git://localhost/gitrepo
-  pushing to git://localhost/gitrepo
+  $ hg push -r master ../gitrepo
+  pushing to ../gitrepo
   exporting hg objects to git
   creating and sending data
   $ cd ..
 
@@ -73,8 +63,8 @@
   exporting hg objects to git
   creating and sending data
   $ cd ..
 
-  $ hg clone git://localhost/gitrepo hgrepo2 | grep -v '^updating'
+  $ hg clone gitrepo hgrepo2 | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo2
diff --git a/tests/test-conflict-2.t b/tests/test-conflict-2.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1jb25mbGljdC0yLnQ=..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1jb25mbGljdC0yLnQ= 100755
--- a/tests/test-conflict-2.t
+++ b/tests/test-conflict-2.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -57,5 +54,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -61,10 +57,4 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
 
   $ cd hgrepo1
   $ hg bookmark -r tip master
@@ -68,9 +58,9 @@
 
   $ cd hgrepo1
   $ hg bookmark -r tip master
-  $ hg push -r master git://localhost/gitrepo
-  pushing to git://localhost/gitrepo
+  $ hg push -r master ../gitrepo
+  pushing to ../gitrepo
   exporting hg objects to git
   creating and sending data
   $ cd ..
 
@@ -73,8 +63,8 @@
   exporting hg objects to git
   creating and sending data
   $ cd ..
 
-  $ hg clone git://localhost/gitrepo hgrepo2 | grep -v '^updating'
+  $ hg clone gitrepo hgrepo2 | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo2
diff --git a/tests/test-convergedmerge.t b/tests/test-convergedmerge.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1jb252ZXJnZWRtZXJnZS50..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1jb252ZXJnZWRtZXJnZS50 100755
--- a/tests/test-convergedmerge.t
+++ b/tests/test-convergedmerge.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -58,5 +55,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -62,10 +58,4 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
 
   $ cd hgrepo1
   $ hg bookmark -r4 master
@@ -69,9 +59,9 @@
 
   $ cd hgrepo1
   $ hg bookmark -r4 master
-  $ hg push -r master git://localhost/gitrepo
-  pushing to git://localhost/gitrepo
+  $ hg push -r master ../gitrepo
+  pushing to ../gitrepo
   exporting hg objects to git
   creating and sending data
   $ cd ..
 
@@ -74,8 +64,8 @@
   exporting hg objects to git
   creating and sending data
   $ cd ..
 
-  $ hg clone git://localhost/gitrepo hgrepo2 | grep -v '^updating'
+  $ hg clone gitrepo hgrepo2 | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo2
diff --git a/tests/test-empty-working-tree.t b/tests/test-empty-working-tree.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1lbXB0eS13b3JraW5nLXRyZWUudA==..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1lbXB0eS13b3JraW5nLXRyZWUudA== 100755
--- a/tests/test-empty-working-tree.t
+++ b/tests/test-empty-working-tree.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
 
@@ -30,5 +27,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo2/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -34,12 +30,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo
@@ -48,8 +37,8 @@
 
   $ hg gclear
   clearing out the git cache data
-  $ hg push git://localhost/gitrepo2
-  pushing to git://localhost/gitrepo2
+  $ hg push ../gitrepo2
+  pushing to ../gitrepo2
   exporting hg objects to git
   creating and sending data
 
diff --git a/tests/test-encoding.t b/tests/test-encoding.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1lbmNvZGluZy50..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1lbmNvZGluZy50 100755
--- a/tests/test-encoding.t
+++ b/tests/test-encoding.t
@@ -6,9 +6,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -53,5 +50,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo2/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -57,12 +53,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   4 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo
@@ -130,8 +119,8 @@
 
   $ hg gclear
   clearing out the git cache data
-  $ hg push git://localhost/gitrepo2
-  pushing to git://localhost/gitrepo2
+  $ hg push ../gitrepo2
+  pushing to ../gitrepo2
   exporting hg objects to git
   creating and sending data
 
diff --git a/tests/test-file-removal.t b/tests/test-file-removal.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1maWxlLXJlbW92YWwudA==..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1maWxlLXJlbW92YWwudA== 100755
--- a/tests/test-file-removal.t
+++ b/tests/test-file-removal.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -58,5 +55,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo2/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -62,12 +58,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo
@@ -117,8 +106,8 @@
 
   $ hg gclear
   clearing out the git cache data
-  $ hg push git://localhost/gitrepo2
-  pushing to git://localhost/gitrepo2
+  $ hg push ../gitrepo2
+  pushing to ../gitrepo2
   exporting hg objects to git
   creating and sending data
 
diff --git a/tests/test-git-clone.t b/tests/test-git-clone.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1naXQtY2xvbmUudA==..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1naXQtY2xvbmUudA== 100755
--- a/tests/test-git-clone.t
+++ b/tests/test-git-clone.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
diff --git a/tests/test-git-submodules.t b/tests/test-git-submodules.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1naXQtc3VibW9kdWxlcy50..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1naXQtc3VibW9kdWxlcy50 100644
--- a/tests/test-git-submodules.t
+++ b/tests/test-git-submodules.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
diff --git a/tests/test-git-tags.t b/tests/test-git-tags.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1naXQtdGFncy50..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1naXQtdGFncy50 100755
--- a/tests/test-git-tags.t
+++ b/tests/test-git-tags.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -49,5 +46,4 @@
   $ commit -m 'add beta'
   $ tag -a -m 'added tag beta' beta
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -53,12 +49,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
@@ -81,7 +70,7 @@
   $ echo beta-fix >> beta
   $ hg commit -m 'fix for beta'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:3b7fd1b3
diff --git a/tests/test-git-workflow.t b/tests/test-git-workflow.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1naXQtd29ya2Zsb3cudA==..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1naXQtd29ya2Zsb3cudA== 100755
--- a/tests/test-git-workflow.t
+++ b/tests/test-git-workflow.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
diff --git a/tests/test-hg-author.t b/tests/test-hg-author.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1oZy1hdXRob3IudA==..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1oZy1hdXRob3IudA== 100755
--- a/tests/test-hg-author.t
+++ b/tests/test-hg-author.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -44,5 +41,4 @@
   $ git checkout -b not-master
   Switched to a new branch 'not-master'
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -48,12 +44,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
@@ -64,7 +53,7 @@
   $ hg add beta
   $ hgcommit -u "test" -m 'add beta'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:cffa0e8d
@@ -72,7 +61,7 @@
   $ echo gamma >> beta
   $ hgcommit -u "test <test@example.com> (comment)" -m 'modify beta'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:2b9ec6a4
@@ -81,7 +70,7 @@
   $ hg add gamma
   $ hgcommit -u "<test@example.com>" -m 'add gamma'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:fee30180
@@ -90,7 +79,7 @@
   $ hg add delta
   $ hgcommit -u "name<test@example.com>" -m 'add delta'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:d1659250
@@ -99,7 +88,7 @@
   $ hg add epsilon
   $ hgcommit -u "name <test@example.com" -m 'add epsilon'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:ee985f12
@@ -108,7 +97,7 @@
   $ hg add zeta
   $ hgcommit -u " test " -m 'add zeta'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:d21e26b4
@@ -117,7 +106,7 @@
   $ hg add eta
   $ hgcommit -u "test < test@example.com >" -m 'add eta'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:8c878c97
@@ -126,7 +115,7 @@
   $ hg add theta
   $ hgcommit -u "test >test@example.com>" -m 'add theta'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:1e03e913
@@ -182,7 +171,7 @@
   
 
   $ cd ..
-  $ hg clone git://localhost/gitrepo hgrepo2 | grep -v '^updating'
+  $ hg clone gitrepo hgrepo2 | grep -v '^updating'
   importing git objects into hg
   8 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo2
diff --git a/tests/test-hg-branch.t b/tests/test-hg-branch.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1oZy1icmFuY2gudA==..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1oZy1icmFuY2gudA== 100755
--- a/tests/test-hg-branch.t
+++ b/tests/test-hg-branch.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -48,5 +45,4 @@
   $ git checkout -b not-master
   Switched to a new branch 'not-master'
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -52,12 +48,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
@@ -67,7 +56,7 @@
   $ hg mv alpha beta
   $ hgcommit -m 'rename alpha to beta'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:05c2bcbe
@@ -76,7 +65,7 @@
   marked working directory as branch gamma
   $ hgcommit -m 'started branch gamma'
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/master => GIT:296802ef
@@ -103,7 +92,7 @@
   
 
   $ cd ..
-  $ hg clone git://localhost/gitrepo hgrepo2 | grep -v '^updating'
+  $ hg clone gitrepo hgrepo2 | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo2
diff --git a/tests/test-hg-tags.t b/tests/test-hg-tags.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1oZy10YWdzLnQ=..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1oZy10YWdzLnQ= 100755
--- a/tests/test-hg-tags.t
+++ b/tests/test-hg-tags.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -44,5 +41,4 @@
   $ git checkout -b not-master
   Switched to a new branch 'not-master'
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -48,12 +44,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
@@ -62,7 +51,7 @@
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hgtag alpha
   $ hg push
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/tags/alpha => GIT:7eeab2ea
@@ -92,7 +81,7 @@
   alpha
 
   $ cd ..
-  $ hg clone git://localhost/gitrepo hgrepo2 | grep -v '^updating'
+  $ hg clone gitrepo hgrepo2 | grep -v '^updating'
   importing git objects into hg
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo2
diff --git a/tests/test-incoming.t b/tests/test-incoming.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1pbmNvbWluZy50..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1pbmNvbWluZy50 100755
--- a/tests/test-incoming.t
+++ b/tests/test-incoming.t
@@ -8,9 +8,6 @@
   $ python -c 'from mercurial import util ; assert \
   >  util.version() != "unknown" and util.version() > "1.7"' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -46,5 +43,4 @@
   $ git add alpha
   $ commit -m "add alpha"
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -50,14 +46,7 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
   $ cd hgrepo
   $ hg incoming | grep -v 'no changes found' | grep -v 'bookmark:'
@@ -59,9 +48,9 @@
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
   $ cd hgrepo
   $ hg incoming | grep -v 'no changes found' | grep -v 'bookmark:'
-  comparing with git://localhost/gitrepo
+  comparing with $TESTTMP/gitrepo
 
   $ cd ../gitrepo
   $ echo beta > beta
@@ -70,7 +59,7 @@
 
   $ cd ../hgrepo
   $ hg incoming | grep -v 'no changes found' | grep -v 'bookmark:'
-  comparing with git://localhost/gitrepo
+  comparing with $TESTTMP/gitrepo
   changeset:   1:9497a4ee62e1
   user:        test <test@example.org>
   date:        Mon Jan 01 00:00:11 2007 +0000
@@ -92,7 +81,7 @@
 
   $ cd ../hgrepo
   $ hg incoming -p | grep -v 'no changes found' | grep -v 'bookmark:'
-  comparing with git://localhost/gitrepo
+  comparing with $TESTTMP/gitrepo
   changeset:   1:9497a4ee62e1
   user:        test <test@example.org>
   date:        Mon Jan 01 00:00:11 2007 +0000
@@ -133,10 +122,10 @@
   $ echo % incoming -r
   % incoming -r
   $ hg incoming -r master | grep -v 'no changes found' | grep -v 'bookmark:'
-  comparing with git://localhost/gitrepo
+  comparing with $TESTTMP/gitrepo
   changeset:   1:9497a4ee62e1
   user:        test <test@example.org>
   date:        Mon Jan 01 00:00:11 2007 +0000
   summary:     add beta
   
   $ hg incoming -r b1 | grep -v 'no changes found' | grep -v 'bookmark:'
@@ -137,10 +126,10 @@
   changeset:   1:9497a4ee62e1
   user:        test <test@example.org>
   date:        Mon Jan 01 00:00:11 2007 +0000
   summary:     add beta
   
   $ hg incoming -r b1 | grep -v 'no changes found' | grep -v 'bookmark:'
-  comparing with git://localhost/gitrepo
+  comparing with $TESTTMP/gitrepo
   changeset:   1:9865e289be73
   tag:         t1
   user:        test <test@example.org>
@@ -153,7 +142,7 @@
   summary:     add d/gamma line 2
   
   $ hg incoming -r t1 | grep -v 'no changes found' | grep -v 'bookmark:'
-  comparing with git://localhost/gitrepo
+  comparing with $TESTTMP/gitrepo
   changeset:   1:9865e289be73
   tag:         t1
   user:        test <test@example.org>
@@ -164,7 +153,7 @@
   $ echo % nothing incoming after pull
   % nothing incoming after pull
   $ hg pull
-  pulling from git://localhost/gitrepo
+  pulling from $TESTTMP/gitrepo
   importing git objects into hg
   (run 'hg heads' to see heads, 'hg merge' to merge)
   $ hg incoming | grep -v 'no changes found' | grep -v 'bookmark:'
@@ -168,7 +157,7 @@
   importing git objects into hg
   (run 'hg heads' to see heads, 'hg merge' to merge)
   $ hg incoming | grep -v 'no changes found' | grep -v 'bookmark:'
-  comparing with git://localhost/gitrepo
+  comparing with $TESTTMP/gitrepo
 
   $ echo 'done'
   done
diff --git a/tests/test-keywords.t b/tests/test-keywords.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1rZXl3b3Jkcy50..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1rZXl3b3Jkcy50 100755
--- a/tests/test-keywords.t
+++ b/tests/test-keywords.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
 
diff --git a/tests/test-merge.t b/tests/test-merge.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1tZXJnZS50..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1tZXJnZS50 100755
--- a/tests/test-merge.t
+++ b/tests/test-merge.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -60,5 +57,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo2/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -64,12 +60,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all \
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo
@@ -78,8 +67,8 @@
   % clear the cache to be sure it is regenerated correctly
   $ hg gclear
   clearing out the git cache data
-  $ hg push git://localhost/gitrepo2
-  pushing to git://localhost/gitrepo2
+  $ hg push ../gitrepo2
+  pushing to ../gitrepo2
   exporting hg objects to git
   creating and sending data
 
diff --git a/tests/test-octopus.t b/tests/test-octopus.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1vY3RvcHVzLnQ=..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1vY3RvcHVzLnQ= 100755
--- a/tests/test-octopus.t
+++ b/tests/test-octopus.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -70,5 +67,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo2/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -74,12 +70,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  > --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   4 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo
@@ -105,8 +94,8 @@
 
   $ hg gclear
   clearing out the git cache data
-  $ hg push git://localhost/gitrepo2
-  pushing to git://localhost/gitrepo2
+  $ hg push ../gitrepo2
+  pushing to ../gitrepo2
   exporting hg objects to git
   creating and sending data
 
diff --git a/tests/test-outgoing.t b/tests/test-outgoing.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1vdXRnb2luZy50..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1vdXRnb2luZy50 100755
--- a/tests/test-outgoing.t
+++ b/tests/test-outgoing.t
@@ -1,9 +1,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -39,5 +36,4 @@
   $ git add alpha
   $ commit -m "add alpha"
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -43,12 +39,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
@@ -65,7 +54,7 @@
   $ hg book -r 1 beta
 
   $ hg outgoing | sed 's/bookmark:    /tag:         /' | grep -v 'searching for changes'
-  comparing with git://localhost/gitrepo
+  comparing with */gitrepo (glob)
   exporting hg objects to git
   changeset:   1:0564f526fb0f
   tag:         beta
@@ -81,7 +70,7 @@
   summary:     add gamma
   
   $ hg outgoing -r beta | sed 's/bookmark:    /tag:         /' | grep -v 'searching for changes'
-  comparing with git://localhost/gitrepo
+  comparing with */gitrepo (glob)
   changeset:   1:0564f526fb0f
   tag:         beta
   user:        test
@@ -89,7 +78,7 @@
   summary:     add beta
   
   $ hg outgoing -r master | sed 's/bookmark:    /tag:         /' | grep -v 'searching for changes'
-  comparing with git://localhost/gitrepo
+  comparing with */gitrepo (glob)
   changeset:   1:0564f526fb0f
   tag:         beta
   user:        test
@@ -122,9 +111,9 @@
   $ echo % this will fail # maybe we should try to make it work
   % this will fail
   $ hg outgoing
-  comparing with git://localhost/gitrepo
+  comparing with */gitrepo (glob)
   abort: refs/heads/master changed on the server, please pull and merge before pushing
   [255]
   $ echo % let\'s pull and try again
   % let's pull and try again
   $ hg pull
@@ -126,9 +115,9 @@
   abort: refs/heads/master changed on the server, please pull and merge before pushing
   [255]
   $ echo % let\'s pull and try again
   % let's pull and try again
   $ hg pull
-  pulling from git://localhost/gitrepo
+  pulling from */gitrepo (glob)
   importing git objects into hg
   (run 'hg update' to get a working copy)
   $ hg outgoing | sed 's/bookmark:    /tag:         /' | grep -v 'searching for changes'
@@ -132,7 +121,7 @@
   importing git objects into hg
   (run 'hg update' to get a working copy)
   $ hg outgoing | sed 's/bookmark:    /tag:         /' | grep -v 'searching for changes'
-  comparing with git://localhost/gitrepo
+  comparing with */gitrepo (glob)
   changeset:   1:0564f526fb0f
   tag:         beta
   user:        test
@@ -146,7 +135,7 @@
   summary:     add gamma
   
   $ hg outgoing -r beta | sed 's/bookmark:    /tag:         /' | grep -v 'searching for changes'
-  comparing with git://localhost/gitrepo
+  comparing with */gitrepo (glob)
   changeset:   1:0564f526fb0f
   tag:         beta
   user:        test
@@ -154,7 +143,7 @@
   summary:     add beta
   
   $ hg outgoing -r master | sed 's/bookmark:    /tag:         /' | grep -v 'searching for changes'
-  comparing with git://localhost/gitrepo
+  comparing with */gitrepo (glob)
   changeset:   1:0564f526fb0f
   tag:         beta
   user:        test
diff --git a/tests/test-pull-after-strip.t b/tests/test-pull-after-strip.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1wdWxsLWFmdGVyLXN0cmlwLnQ=..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1wdWxsLWFmdGVyLXN0cmlwLnQ= 100755
--- a/tests/test-pull-after-strip.t
+++ b/tests/test-pull-after-strip.t
@@ -15,9 +15,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ cat >> $HGRCPATH <<EOF
   > [extensions]
   > graphlog=
@@ -59,11 +56,5 @@
 
 
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr
-
   $ echo % clone a tag
   % clone a tag
@@ -68,6 +59,6 @@
   $ echo % clone a tag
   % clone a tag
-  $ hg clone -r alpha git://localhost/gitrepo hgrepo-a | grep -v '^updating'
+  $ hg clone -r alpha gitrepo hgrepo-a | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo-a
@@ -84,7 +75,7 @@
   $ cd ..
   $ echo % clone a branch
   % clone a branch
-  $ hg clone -r beta git://localhost/gitrepo hgrepo-b | grep -v '^updating'
+  $ hg clone -r beta gitrepo hgrepo-b | grep -v '^updating'
   importing git objects into hg
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo-b
@@ -115,7 +106,7 @@
   $ hg strip tip 2>&1 | grep -v saving | grep -v backup
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   $ hg pull -r beta
-  pulling from git://localhost/gitrepo
+  pulling from $TESTTMP/gitrepo
   importing git objects into hg
   abort: you appear to have run strip - please run hg git-cleanup
   [255]
@@ -124,7 +115,7 @@
   $ echo % pull works after \'hg git-cleanup\'
   % pull works after 'hg git-cleanup'
   $ hg pull -r beta
-  pulling from git://localhost/gitrepo
+  pulling from $TESTTMP/gitrepo
   importing git objects into hg
   (run 'hg update' to get a working copy)
   $ hg log --graph | egrep -v ': *(beta|master)'
diff --git a/tests/test-pull.t b/tests/test-pull.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1wdWxsLnQ=..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1wdWxsLnQ= 100755
--- a/tests/test-pull.t
+++ b/tests/test-pull.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -45,11 +42,5 @@
 
 
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr
-
   $ echo % clone a tag
   % clone a tag
@@ -54,6 +45,6 @@
   $ echo % clone a tag
   % clone a tag
-  $ hg clone -r alpha git://localhost/gitrepo hgrepo-a | grep -v '^updating'
+  $ hg clone -r alpha gitrepo hgrepo-a | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo-a
@@ -70,7 +61,7 @@
   $ cd ..
   $ echo % clone a branch
   % clone a branch
-  $ hg clone -r beta git://localhost/gitrepo hgrepo-b | grep -v '^updating'
+  $ hg clone -r beta gitrepo hgrepo-b | grep -v '^updating'
   importing git objects into hg
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo-b
diff --git a/tests/test-push.t b/tests/test-push.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC1wdXNoLnQ=..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC1wdXNoLnQ= 100755
--- a/tests/test-push.t
+++ b/tests/test-push.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
@@ -44,5 +41,4 @@
   $ git checkout -b not-master 2>&1 | sed s/\'/\"/g
   Switched to a new branch "not-master"
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -48,12 +44,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
@@ -69,7 +58,7 @@
 
   $ hg book -r 1 beta
   $ hg push -r beta
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   exporting hg objects to git
   creating and sending data
       default::refs/heads/beta => GIT:cffa0e8d
@@ -100,7 +89,7 @@
   $ echo % this should fail
   % this should fail
   $ hg push -r master
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   creating and sending data
   abort: refs/heads/master changed on the server, please pull and merge before pushing
   [255]
@@ -108,9 +97,9 @@
   $ echo % ... even with -f
   % ... even with -f
   $ hg push -fr master
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   creating and sending data
   abort: refs/heads/master changed on the server, please pull and merge before pushing
   [255]
 
   $ hg pull
@@ -112,9 +101,9 @@
   creating and sending data
   abort: refs/heads/master changed on the server, please pull and merge before pushing
   [255]
 
   $ hg pull
-  pulling from git://localhost/gitrepo
+  pulling from $TESTTMP/gitrepo
   importing git objects into hg
   (run 'hg update' to get a working copy)
 TODO shouldn't need to do this since we're (in theory) pushing master explicitly,
@@ -141,7 +130,7 @@
   $ echo % this should also fail
   % this should also fail
   $ hg push -r master
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   creating and sending data
   abort: pushing refs/heads/master overwrites 72f56395749d
   [255]
@@ -149,7 +138,7 @@
   $ echo % ... but succeed with -f
   % ... but succeed with -f
   $ hg push -fr master
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   creating and sending data
       default::refs/heads/master => GIT:cc119202
 
@@ -158,7 +147,7 @@
 The exit code for this was broken in Mercurial (incorrectly returning 0) until
 issue3228 was fixed in 2.1
   $ hg push -r master && false
-  pushing to git://localhost/gitrepo
+  pushing to $TESTTMP/gitrepo
   creating and sending data
   no changes found
   [1]
diff --git a/tests/test-tree-decomposition.t b/tests/test-tree-decomposition.t
index e48a3f30b73c194b2d0968753f71dab39614c7dc_dGVzdHMvdGVzdC10cmVlLWRlY29tcG9zaXRpb24udA==..7edcbdd2ef2fee2572c86bcb6c4c3fffd52ab242_dGVzdHMvdGVzdC10cmVlLWRlY29tcG9zaXRpb24udA== 100755
--- a/tests/test-tree-decomposition.t
+++ b/tests/test-tree-decomposition.t
@@ -4,9 +4,6 @@
 bail if the user does not have dulwich
   $ python -c 'import dulwich, dulwich.repo' || exit 80
 
-bail early if the user is already running git-daemon
-  $ ! (echo hi | nc localhost 9418 2>/dev/null) || exit 80
-
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
 
@@ -53,5 +50,4 @@
   $ git init --bare
   Initialized empty Git repository in $TESTTMP/gitrepo2/
 
-dulwich does not presently support local git repos, workaround
   $ cd ..
@@ -57,12 +53,5 @@
   $ cd ..
-  $ git daemon --base-path="$(pwd)"\
-  >  --listen=localhost\
-  >  --export-all\
-  >  --pid-file="$DAEMON_PIDS" \
-  >  --detach --reuseaddr \
-  >  --enable=receive-pack
-
-  $ hg clone git://localhost/gitrepo hgrepo | grep -v '^updating'
+  $ hg clone gitrepo hgrepo | grep -v '^updating'
   importing git objects into hg
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd hgrepo
@@ -76,8 +65,8 @@
 
   $ hg gclear
   clearing out the git cache data
-  $ hg push git://localhost/gitrepo2
-  pushing to git://localhost/gitrepo2
+  $ hg push ../gitrepo2
+  pushing to ../gitrepo2
   exporting hg objects to git
   creating and sending data