hunk.code_window:     version: '0.0.0',
     })
     await execa('git', ['init'])
     await execa('git', ['init', '--bare'], { cwd: remote })
     await execa('git', ['add', '*'])
     await execa('git', ['commit', '-m', 'init', '--no-gpg-sign'])
     await execa('git', ['commit', '--allow-empty', '--allow-empty-message', '-m', '', '--no-gpg-sign'])
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit:   await execa('git', ['config', 'user.email', 'x@y.z'])
     await execa('git', ['config', 'user.name', 'xyz'])
  
hunk.file_path: packages/plugin-commands-publishing/test/gitChecks.ts
hunk.type: add
file: import { ResolveResult } from '@pnpm/resolver-base'
  
  export default async function resolveTarball (
    wantedDependency: {pref: string}
  ): Promise<ResolveResult | null> {
    if (!wantedDependency.pref.startsWith('http:') && !wantedDependency.pref.startsWith('https:')) {
      return null
    }
  
    if (isRepository(wantedDependency.pref)) return null
  
    return {
      id: `@${wantedDependency.pref.replace(/^.*:\/\/(git@)?/, '')}`,
      normalizedPref: wantedDependency.pref,
      resolution: {
        tarball: wantedDependency.pref,
      },
      resolvedVia: 'url',
    }
  }
  
  const GIT_HOSTERS = new Set([
    'github.com',
    'gitlab.com',
    'bitbucket.org',
  ])
  
  function isRepository (pref: string) {
    if (pref.endsWith('/')) {
      pref = pref.substr(0, pref.length - 1)
    }
    const parts = pref.split('/')
    return (parts.length === 5 && GIT_HOSTERS.has(parts[2]))
  }
  