开发者

Why does svn:executable work for one script and not the other?

开发者 https://www.devze.com 2023-01-08 10:55 出处:网络
I have a bash script (.sh file) and a Python script (.py) file in the same directory. Both have the svn:executable permission. Ho开发者_JAVA百科wever when I do an \'svn update\', only the Bash script

I have a bash script (.sh file) and a Python script (.py) file in the same directory. Both have the svn:executable permission. Ho开发者_JAVA百科wever when I do an 'svn update', only the Bash script gets executable permission set.

Any ideas why? (If I manually set the permission on the Python script it runs fine.)

DOH! Turns out I had a typo. It had the property 'sv:executable' (missing n). discovered with loentar's propget/propset.


Is command:


svn propget svn:executable script.py

outputs "*" ?

if not, use this:


svn propset svn:executable '*' script.py


are you sure it's set? I ran a quick test in my svn sandbox and python scripts work just fine.

user@host sandbox> svn proplist script.py
Properties on 'script.py':
  svn:executable
user@host sandbox> ll script.py
-rwxr-x---  user user apiWriter.py
user@host sandbox>
0

精彩评论

暂无评论...
验证码 换一张
取 消