diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-06-18 11:28:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 11:28:33 +0800 |
commit | 6a0d131ece696f259e7ab42a064ceb10dabb1fcc (patch) | |
tree | fb07007006ec6af0dccbcd6a62abc4c6589dcfd3 /git/index/fun.py | |
parent | b0f79c58ad919e90261d1e332df79a4ad0bc40de (diff) | |
parent | 18b6aa55309adfa8aa99bdaf9e8f80337befe74e (diff) | |
download | gitpython-6a0d131ece696f259e7ab42a064ceb10dabb1fcc.tar.gz |
Merge pull request #1271 from Yobmod/main
Add initial types to object, and fix CI
Diffstat (limited to 'git/index/fun.py')
-rw-r--r-- | git/index/fun.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/index/fun.py b/git/index/fun.py index 1012f480..3fded347 100644 --- a/git/index/fun.py +++ b/git/index/fun.py @@ -109,7 +109,7 @@ def run_commit_hook(name: str, index: 'IndexFile', *args: str) -> None: # end handle return code -def stat_mode_to_index_mode(mode): +def stat_mode_to_index_mode(mode: int) -> int: """Convert the given mode from a stat call to the corresponding index mode and return it""" if S_ISLNK(mode): # symlinks |