disable untrackedChangesEnableTrash in linux snap (#242188)

* disable untrackedChangesEnableTrash in linux snap

related to #241476
cc @lszomoru

* missing isLinuxSnap check
This commit is contained in:
João Moreno
2025-02-27 16:36:12 +01:00
committed by GitHub
parent d88e573b5b
commit 25c371614f
4 changed files with 7 additions and 5 deletions

View File

@@ -12,6 +12,8 @@ import byline from 'byline';
export const isMacintosh = process.platform === 'darwin';
export const isWindows = process.platform === 'win32';
export const isRemote = env.remoteName !== undefined;
export const isLinux = process.platform === 'linux';
export const isLinuxSnap = isLinux && !!process.env['SNAP'] && !!process.env['SNAP_REVISION'];
export function log(...args: any[]): void {
console.log.apply(console, ['git:', ...args]);