equal
deleted
inserted
replaced
757 self._subsource = source |
757 self._subsource = source |
758 return _abssource(self) |
758 return _abssource(self) |
759 |
759 |
760 def _fetch(self, source, revision): |
760 def _fetch(self, source, revision): |
761 if not os.path.exists(os.path.join(self._abspath, '.git')): |
761 if not os.path.exists(os.path.join(self._abspath, '.git')): |
762 self._ui.status(_('cloning subrepo %s\n') % self._relpath) |
762 source = self._abssource(source) |
763 self._gitnodir(['clone', self._abssource(source), self._abspath]) |
763 self._ui.status(_('cloning subrepo %s from %s\n') % |
|
764 (self._relpath, source)) |
|
765 self._gitnodir(['clone', source, self._abspath]) |
764 if self._githavelocally(revision): |
766 if self._githavelocally(revision): |
765 return |
767 return |
766 self._ui.status(_('pulling subrepo %s\n') % self._relpath) |
768 self._ui.status(_('pulling subrepo %s\n') % self._relpath) |
767 # try only origin: the originally cloned repo |
769 # try only origin: the originally cloned repo |
768 self._gitcommand(['fetch']) |
770 self._gitcommand(['fetch']) |