Skip to content

Commit 261db17

Browse files
author
Aron Pammer
committed
fixed repository_compare examples
1 parent f19681f commit 261db17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/gl_objects/projects.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@
178178
result = project.repository_compare('master', 'branch1')
179179

180180
# get the commits
181-
for i in commit:
182-
print(result.commits)
181+
for commit in result.commits:
182+
print(commit)
183183

184184
# get the diffs
185-
for file_diff in commit.diffs:
185+
for file_diff in result.diffs:
186186
print(file_diff)
187187
# end repository compare
188188

0 commit comments

Comments
 (0)