Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65747a2

Browse files
committed
submodule.update: the actual update will now mention the revision to which it updates
to_latest_revision would now be honored if possible in dry_run mode
1 parentd0f24c9 commit65747a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎objects/submodule/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
424424
is_detached=mrepo.head.is_detached
425425
#END handle dry_run
426426

427-
ifnotdry_runandto_latest_revision:
427+
ifmrepoisnotNoneandto_latest_revision:
428428
msg_base="Cannot update to latest revision in repository at %r as "%mrepo.working_dir
429429
ifnotis_detached:
430430
rref=mrepo.head.ref.tracking_branch()
@@ -443,7 +443,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
443443
# update the working tree
444444
# handles dry_run
445445
ifmrepoisnotNoneandmrepo.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))
447447
ifnotdry_run:
448448
ifis_detached:
449449
# NOTE: for now we force, the user is no supposed to change detached

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp