mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-09 03:17:54 +00:00
feat: support GITNEXUS_HOME env var to customize global directory (#746)
This commit is contained in:
parent
fd67cfd5a7
commit
9f9bbcd744
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ export const addToGitignore = async (repoPath: string): Promise<void> => {
|
|||
* Get the path to the global GitNexus directory
|
||||
*/
|
||||
export const getGlobalDir = (): string => {
|
||||
return path.join(os.homedir(), '.gitnexus');
|
||||
return process.env.GITNEXUS_HOME || path.join(os.homedir(), '.gitnexus');
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue