mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
fix test-serve breakage for other hostnames
This commit is contained in:
parent
9672ec918b
commit
187ae17c7e
@ -3,7 +3,7 @@
|
||||
hgserve()
|
||||
{
|
||||
hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v $@ \
|
||||
| sed -e 's/:[0-9][0-9]*//g' -e 's/localhost\.localdomain/localhost/'
|
||||
| sed -e 's/:[0-9][0-9]*//g' -e 's/http:\/\/[^/]*\//http:\/\/localhost\//'
|
||||
cat hg.pid >> "$DAEMON_PIDS"
|
||||
sleep 1
|
||||
kill `cat hg.pid`
|
||||
|
Loading…
Reference in New Issue
Block a user