Skip to content

Commit

Permalink
Ignore istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
Takeshi committed Feb 17, 2024
1 parent 8fcbc1a commit de2cb01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/clone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ export default async function clone(
// Prevent second order command injection

const depth = options?.git?.depth || 1

/* istanbul ignore if */
if (typeof depth !== 'number') {
throw new GitlyCloneError('Invalid depth option')
}

/* istanbul ignore if */
if (info.href.includes('--upload-pack') || directory.includes('--upload-pack')) {
throw new GitlyCloneError('Invalid argument')
}
Expand Down

0 comments on commit de2cb01

Please sign in to comment.