| 26 | } |
| 27 | |
| 28 | const char *git_user_agent(void) |
| 29 | { |
| 30 | static const char *agent = NULL; |
| 31 | |
| 32 | if (!agent) { |
| 33 | agent = getenv("GIT_USER_AGENT"); |
| 34 | if (!agent) |
| 35 | agent = GIT_USER_AGENT; |
| 36 | } |
| 37 | |
| 38 | return agent; |
| 39 | } |
| 40 | |
| 41 | /* |
| 42 | Retrieve, sanitize and cache operating system info for subsequent |
no outgoing calls
no test coverage detected