diff -r 1c5cbf28f007 -r d524c88511a7 mercurial/subrepo.py --- a/mercurial/subrepo.py Sun Dec 18 02:08:59 2016 +0530 +++ b/mercurial/subrepo.py Mon Dec 19 00:16:52 2016 +0530 @@ -1313,7 +1313,7 @@ notfoundhint = _("check git is installed and in your PATH") if e.errno != errno.ENOENT: raise error.Abort(genericerror % (self._path, e.strerror)) - elif os.name == 'nt': + elif pycompat.osname == 'nt': try: self._gitexecutable = 'git.cmd' out, err = self._gitnodir(['--version'])