summaryrefslogtreecommitdiff
path: root/docs/gl_objects/projects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-09-25 09:54:41 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-09-25 09:54:41 +0200
commitd09eaa09a106c6fbdb32a48cec01557023874ef6 (patch)
treea8ee69ec0ed01b3c1036d121f6f45fc8abba0626 /docs/gl_objects/projects.py
parent6f7e499a93b8e80181cb8c91a5b1d63ec76f1ba0 (diff)
downloadgitlab-d09eaa09a106c6fbdb32a48cec01557023874ef6.tar.gz
Fix examples for file modification
Fixes #156
Diffstat (limited to 'docs/gl_objects/projects.py')
-rw-r--r--docs/gl_objects/projects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py
index 7c845d8..7623c15 100644
--- a/docs/gl_objects/projects.py
+++ b/docs/gl_objects/projects.py
@@ -226,11 +226,11 @@ f = project.files.create({'file_path': 'testfile',
# files update
f.content = 'new content'
-f.save(branch='master', commit_message='Update testfile')
+f.save(branch_name='master', commit_message='Update testfile')
# or for binary data
f.content = base64.b64encode(open('image.png').read())
-f.save(branch='master', commit_message='Update testfile', encoding='base64')
+f.save(branch_name='master', commit_message='Update testfile', encoding='base64')
# end files update
# files delete