##// END OF EJS Templates
subrepo: convert the os.path references in git to vfs...
Matt Harbison -
r24695:419528cb default
parent child Browse files
Show More
@@ -1290,7 +1290,7 b' class gitsubrepo(abstractsubrepo):'
1290 1290 return retdata, p.returncode
1291 1291
1292 1292 def _gitmissing(self):
1293 return not os.path.exists(os.path.join(self._abspath, '.git'))
1293 return not self.wvfs.exists('.git')
1294 1294
1295 1295 def _gitstate(self):
1296 1296 return self._gitcommand(['rev-parse', 'HEAD'])
@@ -1804,8 +1804,7 b' class gitsubrepo(abstractsubrepo):'
1804 1804 bakname = "%s.orig" % name
1805 1805 self.ui.note(_('saving current version of %s as %s\n') %
1806 1806 (name, bakname))
1807 util.rename(os.path.join(self._abspath, name),
1808 os.path.join(self._abspath, bakname))
1807 self.wvfs.rename(name, bakname)
1809 1808
1810 1809 if not opts.get('dry_run'):
1811 1810 self.get(substate, overwrite=True)
General Comments 0
You need to be logged in to leave comments. Login now