@@ -5,16 +5,16 @@ List project submodules and get the commits they point to with python-gitlab.
5
5
The [ Gitlab REST API V4] ( https://docs.gitlab.com/ee/api/api_resources.html )
6
6
doesn't implement anything for submodule inspection yet. The only thing we can
7
7
currently do is [ updating a submodule to a new commit id] ( https://docs.gitlab.com/ee/api/repository_submodules.html ) ,
8
- but how can we decide to do such update if we don't know the current commit
9
- id of our submodule?
8
+ but how can we trigger such an update if we don't know the current commit id
9
+ of our submodule?
10
10
11
- If you're using ` python-gitlab ` and you're distributing shared code using
12
- submodules, you've probably run into this issue already.
11
+ If you're using ` python-gitlab ` and you're distributing shared code among
12
+ your projects with submodules, you've probably run into this issue already.
13
13
14
14
This package provides minimal utils to list the submodules present in a
15
15
Gitlab project, and more importantly to get the commits they're pointing to
16
16
(when the submodules are Gitlab projects themselves, otherwise we cannot
17
- access the project via their URLs with ` python-gitlab ` only).
17
+ access the project via their URLs using ` python-gitlab ` only).
18
18
19
19
Internally, it reads and parses the ` .gitmodules ` file at the root of the
20
20
Project. To get the commit id of a submodule, it finds the last commit that
@@ -75,7 +75,7 @@ Output:
75
75
subproject
76
76
``` diff
77
77
for subproject in subprojects:
78
- print('- {} ({}) -> {}'.format(
78
+ - print('- {} ({}) -> {}'.format(
79
79
- subproject.submodule.path,
80
80
- subproject.project.url,
81
81
- subproject.commit.id))
0 commit comments