summaryrefslogtreecommitdiff
path: root/Documentation/git-merge-index.txt
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-02-16 22:43:48 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2007-02-16 22:56:06 -0800
commit185c975faaa790a98a4e00f124461473283500d6 (patch)
tree093c04e201a8bbddfbe2e22b734a458a9505a0ec /Documentation/git-merge-index.txt
parentgit-blame: prevent argument parsing segfault (diff)
downloadtgif-185c975faaa790a98a4e00f124461473283500d6.tar.xz
Do not take mode bits from index after type change.
When we do not trust executable bit from lstat(2), we copied existing ce_mode bits without checking if the filesystem object is a regular file (which is the only thing we apply the "trust executable bit" business) nor if the blob in the index is a regular file (otherwise, we should do the same as registering a new regular file, which is to default non-executable). Noticed by Johannes Sixt. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-merge-index.txt')
0 files changed, 0 insertions, 0 deletions