Skip to content

Commit 76419cf

Browse files
committed
README.md fixes
1 parent 1631f57 commit 76419cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ List project submodules and get the commits they point to with python-gitlab.
55
The [Gitlab REST API V4](https://docs.gitlab.com/ee/api/api_resources.html)
66
doesn't implement anything for submodule inspection yet. The only thing we can
77
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?
1010

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.
1313

1414
This package provides minimal utils to list the submodules present in a
1515
Gitlab project, and more importantly to get the commits they're pointing to
1616
(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).
1818

1919
Internally, it reads and parses the `.gitmodules` file at the root of the
2020
Project. To get the commit id of a submodule, it finds the last commit that
@@ -75,7 +75,7 @@ Output:
7575
subproject
7676
```diff
7777
for subproject in subprojects:
78-
print('- {} ({}) -> {}'.format(
78+
- print('- {} ({}) -> {}'.format(
7979
- subproject.submodule.path,
8080
- subproject.project.url,
8181
- subproject.commit.id))

0 commit comments

Comments
 (0)