If you’re using SVN to control your web application, your certainly need to deny access to .svn sub-directories.
<DirectoryMatch "^/.*/\.svn/">
Order allow,deny
Deny from all
</DirectoryMatch>
$HTTP["url"] =~ "/\.svn/" {
url.access-deny = ( "" )
}
This entry was written by , posted on May 28, 2008 at 7:17 am, filed under http and tagged apache, lighttpd, svn. Leave a comment or view the discussion at the permalink.
Sometimes you need to retrieve a single file from SVN without doing a checkout on the repository.
SVN provides the svn cat to output the content of a file. You can redirect the output to get the file as :
svn cat https://svn.mydomain.com/project/folder/file.ext > file.ext
You can also use a simple shell script to do the work :
$ cat svnget
#!/bin/sh
if [ -z "$1" ]; then
echo
echo "Usage : $0 <SVN-URL>"
echo
exit
fi
fn=`basename $1`
svn cat $1 > $fn
This entry was written by , posted on May 23, 2008 at 7:51 am, filed under Command line and tagged svn. Leave a comment or view the discussion at the permalink.