rustyhorde / vergen

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

add git remote url to git environment variables #353

Open dinhani opened 4 months ago

dinhani commented 4 months 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.