在 SVN 中导入/导出时,某些文件丢失了它们的 -x 权限
Some files lost their -x permission when import/ export in SVN
我在 TortoiseSVN 中工作,我注意到一些文件(尤其是 .sh 等可执行文件)在导入/导出时丢失了它们的 -x 权限。是否有一些代码或 SVN 选项可以恢复权限或 import/export 这些文件而不丢失其权限?
阅读SVN Book
On many operating systems, the ability to execute a file as a command
is governed by the presence of an execute permission bit. This bit
usually defaults to being disabled, and must be explicitly enabled by
the user for each file that needs it. But it would be a monumental
hassle to have to remember exactly which files in a freshly
checked-out working copy were supposed to have their executable bits
toggled on, and then to have to do that toggling. So, Subversion
provides the svn:executable
property as a way to specify that the
executable bit for the file on which that property is set should be
enabled, and Subversion honors that request when populating working
copies with such files.
svn:executable
如果存在于文件中,客户端将使文件在 Unix-hosted 个工作副本中可执行。
我在 TortoiseSVN 中工作,我注意到一些文件(尤其是 .sh 等可执行文件)在导入/导出时丢失了它们的 -x 权限。是否有一些代码或 SVN 选项可以恢复权限或 import/export 这些文件而不丢失其权限?
阅读SVN Book
On many operating systems, the ability to execute a file as a command is governed by the presence of an execute permission bit. This bit usually defaults to being disabled, and must be explicitly enabled by the user for each file that needs it. But it would be a monumental hassle to have to remember exactly which files in a freshly checked-out working copy were supposed to have their executable bits toggled on, and then to have to do that toggling. So, Subversion provides the
svn:executable
property as a way to specify that the executable bit for the file on which that property is set should be enabled, and Subversion honors that request when populating working copies with such files.
svn:executable
如果存在于文件中,客户端将使文件在 Unix-hosted 个工作副本中可执行。