aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/lib/common.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index d39133d..df42332 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -598,7 +598,9 @@ function svn_copy {
cp $orig/$file $dest
if [ -d "`dirname $dest`/.svn" ]; then
chown_svn $dest && chgrp_svn $dest
- svn_add $dest
+ cwd="`pwd`"
+ cd `dirname $dest`
+ svn_add `basename $dest`
fi
}