Proper way to add svn:executable

后端 未结 2 542
遇见更好的自我
遇见更好的自我 2020-12-22 20:41

I have a few files that have been executable before svn adding them. They have the svn:executable property set. Now, a few other files were checked in without the executable

2条回答
  •  遥遥无期
    2020-12-22 21:31

    Here is how I set the executable property on all the *.py files in my project that have execute bit set on them. I execute this from the top level directory

    for f in `find ./ -name '*.py'`; do echo $f; if [ -x $f ]; then echo $f 'is executable setting svn:executable'; svn propset svn:executable on $f; else echo $f 'is not executable'; fi; done;
    

提交回复
热议问题