Skip to content

Commit 4a0c5c1

Browse files
authored
[PATCH] Fix deprecation warning of python-gitlab (#23)
1 parent 21e0328 commit 4a0c5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab_submodule/submodule_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _get_submodule_commit_id(
6565

6666
submodule_commit_regex = r'Subproject commit ([a-zA-Z0-9]+)\n'
6767
n_files_in_diff = 0
68-
for diff_file in update_submodule_commit.diff(as_list=False):
68+
for diff_file in update_submodule_commit.diff(iterator=True):
6969
n_files_in_diff += 1
7070
if diff_file['new_path'] == submodule_path:
7171
# either the commit id was added for the first time,

0 commit comments

Comments
 (0)