diff options
| author | Louis Jimenez <[email protected]> | 2025-06-19 23:53:24 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-19 23:53:24 -0400 |
| commit | ea63a8401e6558bdd67d556812ed065b4bb07e9e (patch) | |
| tree | 851b13a591e2af568344b52cd0bf523ede93a10d /packages/core/src/services | |
| parent | 7a419282c82ca950f189ca778b6758337d1e7857 (diff) | |
Move the shell history our of the project .gemini to the home dir (#1195)
Diffstat (limited to 'packages/core/src/services')
| -rw-r--r-- | packages/core/src/services/gitService.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/core/src/services/gitService.ts b/packages/core/src/services/gitService.ts index 956dcec0..83f1fec2 100644 --- a/packages/core/src/services/gitService.ts +++ b/packages/core/src/services/gitService.ts @@ -7,11 +7,11 @@ import * as fs from 'fs/promises'; import * as path from 'path'; import * as os from 'os'; -import * as crypto from 'crypto'; import { isNodeError } from '../utils/errors.js'; import { isGitRepository } from '../utils/gitUtils.js'; import { exec } from 'node:child_process'; import { simpleGit, SimpleGit, CheckRepoActions } from 'simple-git'; +import { getProjectHash, GEMINI_DIR } from '../utils/paths.js'; export class GitService { private projectRoot: string; @@ -21,11 +21,8 @@ export class GitService { } private getHistoryDir(): string { - const hash = crypto - .createHash('sha256') - .update(this.projectRoot) - .digest('hex'); - return path.join(os.homedir(), '.gemini', 'history', hash); + const hash = getProjectHash(this.projectRoot); + return path.join(os.homedir(), GEMINI_DIR, 'history', hash); } async initialize(): Promise<void> { |
