Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366366

Summary: EGit checkout does not set file permissions execute bit correctly on Linux
Product: [Technology] EGit Reporter: Matthew Webber <matthew>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: adietish, angvoz.dev, richardfearn, robin.rosenberg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 353771    

Description Matthew Webber CLA 2011-12-12 04:37:42 EST
Build Identifier: 

This problem occurs on Linux.

If I clone my Git respository using the git command line, one of the files has the execute bit set for everyone. That's what I expect.

If I clone my Git respository using Eclipse IDE (EGit), that file has the execute bit set for the owner only. That's wrong.

A search of bugzilla and the web shows various apparently-related bugs, but only for Windows, and all several years old. I'm running Indigo SR2.

On the EGit forum (http://www.eclipse.org/forums/index.php/t/264022/), Robin Rosenbug stated: "This is due to the limitations of the Java 6 API. Java 7 has the capability, I think, but there is no code yet. That would only work for Java 7 users, but thats better than not-at-all.".



Reproducible: Always
Comment 1 Robin Rosenberg CLA 2011-12-12 17:01:13 EST
A tricky thing may be that the behaviour in C Git depends on the setting
of umask.
Comment 2 Robin Rosenberg CLA 2012-08-19 17:38:32 EDT
Failed patch at https://git.eclipse.org/r/#/c/7296/