(home: string, gitConfigGlobal: string)
| 31 | let projectSnapshot: Map<string, string>; |
| 32 | |
| 33 | function machineEnv(home: string, gitConfigGlobal: string): NodeJS.ProcessEnv { |
| 34 | return { |
| 35 | XDG_CONFIG_HOME: path.join(home, 'config'), |
| 36 | XDG_DATA_HOME: path.join(home, 'data'), |
| 37 | XDG_STATE_HOME: path.join(home, 'state'), |
| 38 | XDG_CACHE_HOME: path.join(home, 'cache'), |
| 39 | OPENSPEC_TELEMETRY: '0', |
| 40 | GIT_CONFIG_GLOBAL: gitConfigGlobal, |
| 41 | GIT_CONFIG_SYSTEM: emptyGitConfig, |
| 42 | GIT_AUTHOR_NAME: 'Journey Tester', |
| 43 | GIT_AUTHOR_EMAIL: 'journey@example.com', |
| 44 | GIT_COMMITTER_NAME: 'Journey Tester', |
| 45 | GIT_COMMITTER_EMAIL: 'journey@example.com', |
| 46 | }; |
| 47 | } |
| 48 | |
| 49 | // Same canonicalization the product uses (expands Windows 8.3 short names). |
| 50 | function canonical(target: string): string { |
no outgoing calls
no test coverage detected