@@ -424,7 +424,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
424
424
is_detached = mrepo .head .is_detached
425
425
#END handle dry_run
426
426
427
- if not dry_run and to_latest_revision :
427
+ if mrepo is not None and to_latest_revision :
428
428
msg_base = "Cannot update to latest revision in repository at %r as " % mrepo .working_dir
429
429
if not is_detached :
430
430
rref = mrepo .head .ref .tracking_branch ()
@@ -443,7 +443,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
443
443
# update the working tree
444
444
# handles dry_run
445
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 ))
446
+ progress .update (BEGIN | UPDWKTREE ,0 ,1 ,prefix + "Updating working tree at %s for submodule %r to revision %s " % (self .path ,self .name , hexsha ))
447
447
if not dry_run :
448
448
if is_detached :
449
449
# NOTE: for now we force, the user is no supposed to change detached