I am starting to understand the issues I get during my repository synchronization between Git and ClearCase.
Let's take a look at this:
$ cd
$ touch foo && chmod 777 foo
$ ls -al foo
-rwxrwxrwx+ 1 ch52198 Domain Users 0 Sep 4 15:04 foo
$ cd /vob/view/project/
$ cp ~/foo .
$ ls -al foo
$ -rw-r----- 1 ch52198 Domain Users 0 Sep 4 15:05 foo
$ chmod u+x foo
$ ls -al foo
$ -rw-r----- 1 ch52198 Domain Users 0 Sep 4 15:05 foo
ClearCase is doing everything wrong. It ignore all the files permissions when using a MVFS storage.
Things are getting worse because if on my local Git repository I set the executable flag on a script. I will never be able to keep this flag on my ClearCase repository.
How should I fix this issue?
I tried to use cleartol protect -chmod 777 foo
, but I cannot see the permission change with Cygwin.