* 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)
| 1758 | * @returns true if any subcommand is a git command |
| 1759 | */ |
| 1760 | function commandHasAnyGit(command: string): boolean { |
| 1761 | return splitCommand_DEPRECATED(command).some(subcmd => |
| 1762 | isNormalizedGitCommand(subcmd.trim()), |
| 1763 | ) |
| 1764 | } |
| 1765 | |
| 1766 | /** |
| 1767 | * Git-internal path patterns that can be exploited for sandbox escape. |
no test coverage detected