Hi Regina,

On Wed, May 22, 2013 at 06:42:27PM +0200, Regina Henschel wrote:
> >This means it was committed with the executable bit on:
> >
> >[ariel@localhost trunk]$ ls -l 
> >main/helpcontent2/source/text/shared/guide/sidebar_window.xhp
> >-rwxrwxr-x. 1 ariel ariel 11266 May 22 13:14 
> >main/helpcontent2/source/text/shared/guide/sidebar_window.xhp
> 
> How can I correct it? I think a .xhp file should not be executable.

I corrected it with http://svn.apache.org/r1485289

Note that if using subversion, one should avoid (according to the
manual) using chmod +x / chmod -x, but with git-svn this works,
svn:executable is the only  SVN property not ignored
(https://www.kernel.org/pub/software/scm/git/docs/git-svn.html).

So the steps to fix an already committed file:

[ariel@localhost trunk]$ chmod -x 
main/helpcontent2/source/text/shared/guide/sidebar_window.xhp
[ariel@localhost trunk]$ git commit -a --message="Remove executable bit"
[ariel@localhost trunk]$ git svn dcommit

The -x removes the executable bit.

> >Are you using subversion or git-svn?
> 
> I use git-svn. How can I avoid such problem?

If you want to avoid this before committing, you can make a pre-commit
hook (this is a script that is run before committing and aborts the
commit if it returns error code), or perform some checks manually;
searching in Google for "git windows executable bit" gives several
results, this seems a common problem on Win; for example
https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/0EdNev3NNsw
which suggests setting

git config core.filemode false


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: pgpDLcSPr1v4X.pgp
Description: PGP signature

Reply via email to