Skip to content

Commit e87835f

Browse files
author
Gauvain Pocentek
authored
Merge pull request #282 from velvetz7/docs_typo
Fixed repository_compare examples
2 parents 67d9a89 + 73be8f9 commit e87835f

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)