From bebc4f56f4e9a0bd3e88fcca3d40ece090252e82 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 19 May 2016 13:47:40 +0200 Subject: Use correct mode for executable files Fixes #430 --- git/index/fun.py | 2 +- git/repo/base.py | 2 +- 2 files changed, 2 insertions(+), 2 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): diff --git a/git/repo/base.py b/git/repo/base.py index e115fd4b..c2bd2a62 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -628,7 +628,7 @@ class Repo(object): :note: ignored files will not appear here, i.e. files mentioned in .gitignore :note: - This property is expensive, as no cache is involved. To process the result, please + This property is expensive, as no cache is involved. To process the result, please consider caching it yourself.""" return self._get_untracked_files() -- cgit v1.2.1