-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
The reported GitwebUrl assumes that the service will always be on port 80. This is untrue. The -port input should be used to append a :$port to the domain name when the port is not 80.
Current behavior:
$ ./goit
Usage of ./goit:
-excludeRegexp="": Exlude paths from being listed
-gitwebServer="localhost": Gitweb server's hostname
-port="8080": Port to listen from
-runServer=false: Run web server or just print repositories
$ ./goit .
{"Name":"goit","Path":"/home/buck/trees/theirs/goit","RelativePath":"home/buck/trees/theirs/goit","GitwebUrl":"https://localhost?p=home/buck/trees/theirs/goit","Type":1}
Correct behavior:
$ ./goit .
{"Name":"goit","Path":"/home/buck/trees/theirs/goit","RelativePath":"home/buck/trees/theirs/goit","GitwebUrl":"https://localhost:8080?p=home/buck/trees/theirs/goit","Type":1}
Metadata
Metadata
Assignees
Labels
No labels