Skip to content

Commit 2976561

Browse files
committed
Merge pull request gitpython-developers#116 from lqez/master
Fix typo in tutorial
2 parents 1cb02eb + e533955 commit 2976561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: doc/source/tutorial.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ Index Objects are objects that can be put into git's index. These objects are tr
146146
''
147147
hct.trees[0].path # the first subdirectory has one though
148148
'dir'
149-
htc.mode # trees have the mode of a linux directory
149+
oct(htc.mode) # trees have the mode of a linux directory
150150
040000
151-
'%o' % htc.blobs[0].mode # blobs have a specific mode though comparable to a standard linux fs
151+
oct(htc.blobs[0].mode) # blobs have a specific mode though comparable to a standard linux fs
152152
100644
153153
154154
Access blob data (or any object data) directly or using streams::

0 commit comments

Comments
 (0)