There was an error while loading. Please reload this page.
1 parent d0f24c9 commit 65747a2Copy full SHA for 65747a2
1 file changed
objects/submodule/base.py
@@ -424,7 +424,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
424
is_detached = mrepo.head.is_detached
425
#END handle dry_run
426
427
- if not dry_run and to_latest_revision:
+ if mrepo is not None and to_latest_revision:
428
msg_base = "Cannot update to latest revision in repository at %r as " % mrepo.working_dir
429
if not is_detached:
430
rref = mrepo.head.ref.tracking_branch()
@@ -443,7 +443,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
443
# update the working tree
444
# handles dry_run
445
if mrepo is not None and mrepo.head.commit.binsha != binsha:
446
- progress.update(BEGIN|UPDWKTREE, 0, 1, prefix+"Updating working tree at %s for submodule %r" % (self.path, self.name))
+ progress.update(BEGIN|UPDWKTREE, 0, 1, prefix+"Updating working tree at %s for submodule %r to revision %s" % (self.path, self.name, hexsha))
447
if not dry_run:
448
if is_detached:
449
# NOTE: for now we force, the user is no supposed to change detached
0 commit comments