summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-07-10 07:18:55 +0200
committerGitHub <noreply@github.com>2017-07-10 07:18:55 +0200
commite87835fe02aeb174c1b0355a1733733d89b2e404 (patch)
treeb3eb39d6db069f7d80b3d72da1a14caa4b806d10 /docs
parent67d9a8989b76af25fca1b5f0f82c4af5e81332eb (diff)
parent73be8f9a64b8a8db39f1a9d39b7bd677e1c68b0a (diff)
downloadgitlab-e87835fe02aeb174c1b0355a1733733d89b2e404.tar.gz
Merge pull request #282 from velvetz7/docs_typo
Fixed repository_compare examples
Diffstat (limited to 'docs')
-rw-r--r--docs/gl_objects/projects.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py
index c9593cc..428f357 100644
--- a/docs/gl_objects/projects.py
+++ b/docs/gl_objects/projects.py
@@ -178,11 +178,11 @@ file_content = p.repository_raw_blob(id)
result = project.repository_compare('master', 'branch1')
# get the commits
-for i in commit:
- print(result.commits)
+for commit in result['commits']:
+ print(commit)
# get the diffs
-for file_diff in commit.diffs:
+for file_diff in result['diffs']:
print(file_diff)
# end repository compare