summaryrefslogtreecommitdiff
path: root/git/objects/submodule/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/objects/submodule/base.py')
-rw-r--r--git/objects/submodule/base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index 730642ed..42048028 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -34,6 +34,7 @@ __all__ = ["Submodule", "UpdateProgress"]
class UpdateProgress(RemoteProgress):
+
"""Class providing detailed progress information to the caller who should
derive from it and implement the ``update(...)`` message"""
CLONE, FETCH, UPDWKTREE = [1 << x for x in range(RemoteProgress._num_op_codes, RemoteProgress._num_op_codes+3)]
@@ -53,6 +54,7 @@ UPDWKTREE = UpdateProgress.UPDWKTREE
# mechanism which cause plenty of trouble of the only reason for packages and
# modules is refactoring - subpackages shoudn't depend on parent packages
class Submodule(util.IndexObject, Iterable, Traversable):
+
"""Implements access to a git submodule. They are special in that their sha
represents a commit in the submodule's repository which is to be checked out
at the path of this instance.
@@ -387,7 +389,6 @@ class Submodule(util.IndexObject, Iterable, Traversable):
#END handle dry-run
progress.update(END|CLONE, 0, 1, prefix+"Done cloning to %s" % module_path)
-
if not dry_run:
# see whether we have a valid branch to checkout
try:
@@ -415,7 +416,6 @@ class Submodule(util.IndexObject, Iterable, Traversable):
#END handle dry_run
#END handle initalization
-
# DETERMINE SHAS TO CHECKOUT
############################
binsha = self.binsha
@@ -549,7 +549,6 @@ class Submodule(util.IndexObject, Iterable, Traversable):
renamed_module = True
#END move physical module
-
# rename the index entry - have to manipulate the index directly as
# git-mv cannot be used on submodules ... yeah
try: