There was an error while loading. Please reload this page.
2 parents 67d9a89 + 73be8f9 commit e87835fCopy full SHA for e87835f
1 file changed
docs/gl_objects/projects.py
@@ -178,11 +178,11 @@
178
result = project.repository_compare('master', 'branch1')
179
180
# get the commits
181
-for i in commit:
182
- print(result.commits)
+for commit in result['commits']:
+ print(commit)
183
184
# get the diffs
185
-for file_diff in commit.diffs:
+for file_diff in result['diffs']:
186
print(file_diff)
187
# end repository compare
188
0 commit comments