Skip to content

Commit 58301b1

Browse files
Merge pull request #2 from darkdragon-001/fix-project-url
Fix Gitlab project attribute for web URL.
2 parents 4eec526 + 101dfee commit 58301b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ subprojects = iterate_subprojects(
5757
for subproject in subprojects:
5858
print('- {} ({}) -> {}'.format(
5959
subproject.submodule.path,
60-
subproject.project.url,
60+
subproject.project.web_url,
6161
subproject.commit.id))
6262
```
6363
Output:
@@ -77,7 +77,7 @@ Output:
7777
for subproject in subprojects:
7878
- print('- {} ({}) -> {}'.format(
7979
- subproject.submodule.path,
80-
- subproject.project.url,
80+
- subproject.project.web_url,
8181
- subproject.commit.id))
8282
+ head_subproject_commit = subproject.project.commits.list(
8383
+ ref=subproject.project.default_branch)[0]

0 commit comments

Comments
 (0)