Partial commit resets file permissions

Originator:mxn
Number:rdar://25729523 Date Originated:14-Apr-2016
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification:Other Bug Reproducible:Always
 
Summary:
If I use the Commit sheet to selectively commit changes to a shell script, Xcode resets the file permissions, removing the executable flag.

Steps to Reproduce:
1. Make a shell script executable and commit that change.
2. Make two non-adjacent changes to the shell script.
3. Commit one change but not the other.

Expected Results:
The shell script remains executable.

Actual Results:
The shell script is no longer executable.

Version:
Xcode 7.3 (7D175)
OS X 10.11.4 (15E65)

Notes:

Configuration:
Reproduces in a git working copy. I haven’t tried in a Subversion working copy.

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!