From b5969a2dcea77fa608cc29be7a5f39062edd3846 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Sun, 6 Oct 2019 18:06:11 +0200 Subject: docs(project): add submodule docs --- docs/gl_objects/projects.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/gl_objects') diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst index 85e5cb9..c0f92ae 100644 --- a/docs/gl_objects/projects.rst +++ b/docs/gl_objects/projects.rst @@ -151,6 +151,15 @@ Get the content and metadata of a file for a commit, using a blob sha:: content = base64.b64decode(file_info['content']) size = file_info['size'] +Update a project submodule:: + + items = project.update_submodule( + submodule="foo/bar", + branch="master", + commit_sha="4c3674f66071e30b3311dac9b9ccc90502a72664", + commit_message="Message", # optional + ) + Get the repository archive:: tgz = project.repository_archive() -- cgit v1.2.1