Commits

Michał Górny  committed c91af01

Avoid unnecessary exceptions when remoterev() is used.

Simply disable 'offline' option instead.

  • Participants
  • Parent commits aa9cc5c

Comments (0)

Files changed (1)

File SmartLiveRebuild/vcs/__init__.py

 					self.diffstat(self.oldrev, newrev)
 				out.s3('update from %s%s%s to %s%s%s' % (out.green, self.oldrev, out.reset, out.lime, newrev, out.reset))
 				if doingremote:
-					raise Exception('remote revision changed, forcing re-fetch')
+					self._opts.offline = False
 				return True
 		else:
 			raise Exception('update command returned non-zero result')