x


Using git on scripts - Why do i have to keep setting project permissions on launching unity?

Hi,

I'm using git for managing the source control of my .cs scripts inside my assets/scripts folder. This is where git's .git folder lives.

Everytime i commit changes to files, the next time i run unity a dialog pops up saying something like, the project permissions need to be writable. Sorry i didn't note down exactly what it says. I also bizarrely have to authenticate as myself for this action to succeed and unity to launch.

It's nothing more than an inconvenience but if its fixable i would like to know how.

I was worried unity was perhaps seeing the .git folder and getting flustered by something inside it, but have been told that unity should ignore . prefixed files.

Thanks for your time

more ▼

asked Dec 16 '09 at 02:35 AM

jimbobuk gravatar image

jimbobuk
1.1k 34 42 54

I know this is a bit late, but have you tried using Git UniTEAM from the asset store? It's an editor extension that lets you manage your Git versioned project.

Feb 25 at 08:07 PM XaeroDegreaz
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I got this message after some git commits up until Unity 2.6, and after bugging them about it they were kind enough to fix it. Here's part of the answer I received for my bug report, it might answer your question of what's going on:

Unity only requires execute bit on directories, not plain files.

However when fixing the permissions it does set the permissions to read, write and execute on all files and directories. This will be fixed in the upcoming 2.6 release of Unity.

In short, Unity used to demand that even source files were 755, but git kept setting them to 644. It seems that Unity iPhone still does it the old way, so you may want to raise a bug report/feature request for it. My case was 268479, in case you wish to reference it.

more ▼

answered Dec 16 '09 at 04:45 AM

Ricardo gravatar image

Ricardo
5.2k 20 32 96

Thanks. Will do.

Dec 16 '09 at 04:18 PM jimbobuk

asked unity about it. It will come along with 2.6 changes to Unity iPhone. No comments on when that can be expected.

Dec 18 '09 at 01:34 AM jimbobuk
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5050
x1998
x1663
x51
x22

asked: Dec 16 '09 at 02:35 AM

Seen: 2448 times

Last Updated: Feb 25 at 08:07 PM