#TIL #svn #linux #macos 파일 실행 권한을 svn 프로퍼티로 적용

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.

- File Executability - svnbook.red-bean.com

linux에서 svn을 처음 써 본 적이 없어서 이런 게 있는지도 몰랐다. git과 다르게 svn:executable 속성을 세팅해야 체크아웃할 때, 파일 실행 권한을 svn이 세팅해준다.

$ find . -executable -type f | xargs svn propset svn:executable ON

linux에서 add하고 커밋하기 전에 이런 명령을 실행하면 로컬 파일의 실행 권한과 svn 파일 실행 권한을 똑같이 맞춰준다.

$ find . -perm +111 -type f | xargs svn propset svn:executable ON

macOS는 인자를 다르게 해야 한다.

참고

Feedback plz <3 @ohyecloudy, ohyecloudy@gmail.com

A Random Post