* Checks if a compound command contains any git command. * * @param command The full command string to check * @returns true if any subcommand is a git command
(command: string)
| 1848 | * @returns true if any subcommand is a git command |
| 1849 | */ |
| 1850 | function commandHasAnyGit(command: string): boolean { |
| 1851 | return splitCommand_DEPRECATED(command).some(subcmd => |
| 1852 | isNormalizedGitCommand(subcmd.trim()), |
| 1853 | ) |
| 1854 | } |
| 1855 | |
| 1856 | /** |
| 1857 | * Git-internal path patterns that can be exploited for sandbox escape. |
no test coverage detected