chiark / gitweb /
svn-takeover: Cope with .svn directories already being present.
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 28 Nov 2002 20:26:41 +0000 (20:26 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 28 Nov 2002 20:26:41 +0000 (20:26 +0000)
svn-takeover

index 0f0315b..f18c541 100755 (executable)
@@ -6,7 +6,7 @@ if [ -z "$1" ]; then
     exit 1
 fi
 
-for x in `find . -type d`; do
+for x in `find . -name .svn -prune -o -type d -print`; do
     if [ -d "$1/$x/.svn" ] && [ ! -d "$x/.svn" ]; then
        cp -a "$1/$x/.svn" "$x/"
     else