From 861e6e15b6b2e07faa7ffe7d7b4cd2c10a1debd8 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 28 Nov 2008 01:33:00 +0000 Subject: fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@575 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'trunk/lib') 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 } -- cgit v1.2.3