mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Extract raw remote URLs in http-git.
This commit is contained in:
parent
8f907ae853
commit
c367d03916
1 changed files with 5 additions and 0 deletions
|
|
@ -227,6 +227,11 @@ function action(host, port)
|
|||
if ok(".git/config") then
|
||||
local config = replies[".git/config"].body
|
||||
|
||||
-- Try to extract URLs of all remotes.
|
||||
for url in string.gmatch(config, "\n%s*url%s*=%s*(%S*/%S*)") do
|
||||
out:insert("Remote: " .. url)
|
||||
end
|
||||
|
||||
-- These are some popular / well-known Git hosting services and/or hosting services
|
||||
-- that allow deployment via 'git push'
|
||||
local popular_remotes = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue