Make --pull work like the other commands
parent
51a8fb66db
commit
1575934568
|
@ -1534,16 +1534,21 @@ class OpengnsysGitLibrary:
|
|||
|
||||
if origin:
|
||||
self.logger.debug("Fetching from origin")
|
||||
origin.fetch()
|
||||
origin.fetch(progress=OgProgressPrinter(self.logger))
|
||||
else:
|
||||
self.logger.error("Origin not found, can't fetch")
|
||||
|
||||
def pullRepo(self, path):
|
||||
def pull(self, path = None, device = None):
|
||||
"""
|
||||
Pull changes from ogrepository
|
||||
|
||||
This unconditionally overwrites remote changes. There is no conflict resolution.
|
||||
"""
|
||||
|
||||
|
||||
if path is None:
|
||||
path = self.fs.ensure_mounted(device)
|
||||
|
||||
repo = git.Repo(path)
|
||||
|
||||
self.logger.debug("Downloading from ogrepository")
|
||||
|
|
Loading…
Reference in New Issue