equal
deleted
inserted
replaced
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: |