mercurial/subrepo.py
changeset 34645 75979c8d4572
parent 34382 719a5c17e131
child 34815 68e0bcb90357
equal deleted inserted replaced
34644:c0a6c19690ff 34645:75979c8d4572
  1345             genericerror = _("error executing git for subrepo '%s': %s")
  1345             genericerror = _("error executing git for subrepo '%s': %s")
  1346             notfoundhint = _("check git is installed and in your PATH")
  1346             notfoundhint = _("check git is installed and in your PATH")
  1347             if e.errno != errno.ENOENT:
  1347             if e.errno != errno.ENOENT:
  1348                 raise error.Abort(genericerror % (
  1348                 raise error.Abort(genericerror % (
  1349                     self._path, encoding.strtolocal(e.strerror)))
  1349                     self._path, encoding.strtolocal(e.strerror)))
  1350             elif pycompat.osname == 'nt':
  1350             elif pycompat.iswindows:
  1351                 try:
  1351                 try:
  1352                     self._gitexecutable = 'git.cmd'
  1352                     self._gitexecutable = 'git.cmd'
  1353                     out, err = self._gitnodir(['--version'])
  1353                     out, err = self._gitnodir(['--version'])
  1354                 except OSError as e2:
  1354                 except OSError as e2:
  1355                     if e2.errno == errno.ENOENT:
  1355                     if e2.errno == errno.ENOENT: