Fossil SCM
Made --baseurl parameter optional in tools/fslsrv since Fossil complains if you give only a top-level URL; it's right, it doesn't need --baseurl in that case.
Commit
8b2b232886600fd819b1d102671440e6df74401e00393121ef522d46164a6394
Parent
c6b4d80e9c35949…
1 file changed
+4
-3
+4
-3
| --- tools/fslsrv | ||
| +++ tools/fslsrv | ||
| @@ -39,14 +39,15 @@ | ||
| 39 | 39 | |
| 40 | 40 | function start_one() { |
| 41 | 41 | bn=$1 |
| 42 | 42 | port=$(($BASEPORT + $2)) |
| 43 | 43 | url="$3" |
| 44 | + if [ -n "$url" ] ; then baseurl="--baseurl $url" ; fi | |
| 44 | 45 | |
| 45 | - $FOSSIL server --localhost --port $port --scgi \ | |
| 46 | - --baseurl $url --errorlog ~/log/fossil/$bn-errors.log \ | |
| 46 | + $FOSSIL server --localhost --port $port --scgi $baseurl \ | |
| 47 | + --errorlog ~/log/fossil/$bn-errors.log \ | |
| 47 | 48 | ~/museum/$bn.fossil > ~/log/fossil/$bn-stdout.log & |
| 48 | 49 | echo Fossil server running for $bn, PID $!, port $port. |
| 49 | 50 | } |
| 50 | 51 | |
| 51 | 52 | start_one example 0 https://example.com/code |
| 52 | -start_one foo 1 https://foo.net | |
| 53 | +start_one foo 1 | |
| 53 | 54 |
| --- tools/fslsrv | |
| +++ tools/fslsrv | |
| @@ -39,14 +39,15 @@ | |
| 39 | |
| 40 | function start_one() { |
| 41 | bn=$1 |
| 42 | port=$(($BASEPORT + $2)) |
| 43 | url="$3" |
| 44 | |
| 45 | $FOSSIL server --localhost --port $port --scgi \ |
| 46 | --baseurl $url --errorlog ~/log/fossil/$bn-errors.log \ |
| 47 | ~/museum/$bn.fossil > ~/log/fossil/$bn-stdout.log & |
| 48 | echo Fossil server running for $bn, PID $!, port $port. |
| 49 | } |
| 50 | |
| 51 | start_one example 0 https://example.com/code |
| 52 | start_one foo 1 https://foo.net |
| 53 |
| --- tools/fslsrv | |
| +++ tools/fslsrv | |
| @@ -39,14 +39,15 @@ | |
| 39 | |
| 40 | function start_one() { |
| 41 | bn=$1 |
| 42 | port=$(($BASEPORT + $2)) |
| 43 | url="$3" |
| 44 | if [ -n "$url" ] ; then baseurl="--baseurl $url" ; fi |
| 45 | |
| 46 | $FOSSIL server --localhost --port $port --scgi $baseurl \ |
| 47 | --errorlog ~/log/fossil/$bn-errors.log \ |
| 48 | ~/museum/$bn.fossil > ~/log/fossil/$bn-stdout.log & |
| 49 | echo Fossil server running for $bn, PID $!, port $port. |
| 50 | } |
| 51 | |
| 52 | start_one example 0 https://example.com/code |
| 53 | start_one foo 1 |
| 54 |