summaryrefslogtreecommitdiff
path: root/git/index
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-05-19 13:47:40 +0200
committerSebastian Thiel <byronimo@gmail.com>2016-05-19 13:47:40 +0200
commitbebc4f56f4e9a0bd3e88fcca3d40ece090252e82 (patch)
tree63e53d2e4bb0597d2c743af974d499468c37f31f /git/index
parent2376bd397f084902196a929171c7f7869529bffc (diff)
downloadgitpython-bebc4f56f4e9a0bd3e88fcca3d40ece090252e82.tar.gz
Use correct mode for executable files
Fixes #430
Diffstat (limited to 'git/index')
-rw-r--r--git/index/fun.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/index/fun.py b/git/index/fun.py
index c1026fd6..4dd32b19 100644
--- a/git/index/fun.py
+++ b/git/index/fun.py
@@ -93,7 +93,7 @@ def stat_mode_to_index_mode(mode):
return S_IFLNK
if S_ISDIR(mode) or S_IFMT(mode) == S_IFGITLINK: # submodules
return S_IFGITLINK
- return S_IFREG | 0o644 | (mode & 0o100) # blobs with or without executable bit
+ return S_IFREG | 0o644 | (mode & 0o111) # blobs with or without executable bit
def write_cache(entries, stream, extension_data=None, ShaStreamCls=IndexFileSHA1Writer):