Skip to content

Commit 0f5320e

Browse files
committed
Fix flake8 issue.
It's new in the latest version of flake - thanks travis for letting me know.
1 parent 5ac93b1 commit 0f5320e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎git/objects/submodule/base.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,13 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
578578
base_commit=mrepo.merge_base(mrepo.head.commit, hexsha)
579579
iflen(base_commit) ==0orbase_commit[0].hexsha==hexsha:
580580
ifforce:
581-
log.debug("Will force checkout or reset on local branch that is possibly in the future of"
582-
+"the commit it will be checked out to, effectively 'forgetting' new commits")
581+
msg="Will force checkout or reset on local branch that is possibly in the future of"
582+
msg+="the commit it will be checked out to, effectively 'forgetting' new commits"
583+
log.debug(msg)
583584
else:
584-
log.info("Skipping %s on branch '%s' of submodule repo '%s' as it contains "
585-
+"un-pushed commits", is_detachedand"checkout"or"reset", mrepo.head, mrepo)
585+
msg="Skipping %s on branch '%s' of submodule repo '%s' as it contains un-pushed commits"
586+
msg%= (is_detachedand"checkout"or"reset", mrepo.head, mrepo)
587+
log.info(msg)
586588
may_reset=False
587589
# end handle force
588590
# end handle if we are in the future

0 commit comments

Comments
(0)