summaryrefslogtreecommitdiff
path: root/tests/update-gits-submodules.script
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-18 14:48:37 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-18 14:48:37 +0000
commit8cb0e9879a51c1f12b8ab8d9dcb076cd145e7375 (patch)
tree4313a0c8fcb93e154e91f3b6e23d9757ce6e923d /tests/update-gits-submodules.script
parent1e6726f484da512871520e47d45afec13de6ce03 (diff)
downloadmorph-8cb0e9879a51c1f12b8ab8d9dcb076cd145e7375.tar.gz
Use 127.0.0.1 instead of localhost
We do not currently install an /etc/hosts in Baserock, and thus the name localhost is not guaranteed to resolve as expected. This patch changes the tests to use 127.0.0.1 instead, since that is the IP address we want localhost to resolve to.
Diffstat (limited to 'tests/update-gits-submodules.script')
-rwxr-xr-xtests/update-gits-submodules.script2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/update-gits-submodules.script b/tests/update-gits-submodules.script
index 66d35897..557c29e7 100755
--- a/tests/update-gits-submodules.script
+++ b/tests/update-gits-submodules.script
@@ -25,7 +25,7 @@ set -eu
git daemon --port=9419 --pid-file="$DATADIR/git.pid" --reuseaddr \
--export-all --base-path="$DATADIR" 2> /dev/null &
trap 'kill $(cat "$DATADIR/git.pid")' INT TERM ERR
-REPO_ALIAS='test=git://localhost:9419/%s#git://localhost:9419/%s'
+REPO_ALIAS='test=git://127.0.0.1:9419/%s#git://127.0.0.1:9419/%s'
# Create a repo to use as a submodule
submodule="$DATADIR/submodule-repo"