Skip to content

Commit 08aa422

Browse files
committed
docs(project): add submodule docs
1 parent ab3459d commit 08aa422

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

docs/gl_objects/projects.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@ Get the content and metadata of a file for a commit, using a blob sha::
151151
content = base64.b64decode(file_info['content'])
152152
size = file_info['size']
153153

154+
Update a project submodule::
155+
156+
items = project.update_submodule(
157+
submodule="foo/bar",
158+
branch="master",
159+
commit_sha="4c3674f66071e30b3311dac9b9ccc90502a72664",
160+
commit_message="Message", # optional
161+
)
162+
154163
Get the repository archive::
155164

156165
tgz = project.repository_archive()

gitlab/v4/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3888,7 +3888,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
38883888
@cli.register_custom_action("Project", ("submodule", "branch", "commit_sha"))
38893889
@exc.on_http_error(exc.GitlabUpdateError)
38903890
def update_submodule(self, submodule, branch, commit_sha, **kwargs):
3891-
"""Transfer a project to the given namespace ID
3891+
"""Update a project submodule
38923892
38933893
Args:
38943894
submodule (str): Full path to the submodule

try-status.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy