rustyhorde / vergen

Generate cargo instructions at compile time in build scripts for use with the env! or option_env! macros
Apache License 2.0
349 stars 55 forks source link

add git remote url to git environment variables #353

Open dinhani opened 3 weeks ago

dinhani commented 3 weeks ago

I would like to have the URL of the remote git repository available in the Git environment variables, but it seems this is not possible right now.

I can get the URL with the following command: git config --get remote.origin.url

Possible user and password may be stripped from the URL if present.