--- trunk/pkgtools/svn-branch.sh 2011/05/31 17:42:39 1330 +++ trunk/pkgtools/svn-branch.sh 2019/03/15 10:10:11 3105 @@ -15,10 +15,10 @@ [[ -z ${BRANCH} ]] && usage [[ -z ${Message} ]] && MESSAGE="created branch '${BRANCH}'" -URI="$(svn info | grep 'URL:' | cut -d' ' -f2)" +URI="$(svn info | grep '^URL:' | cut -d' ' -f2)" [[ $? -ne 0 ]] && usage REPO_ROOT="$(svn info | grep 'Repository Root:' | cut -d' ' -f3)" [[ $? -ne 0 ]] && usage echo "creating branch ${URI} with '${BRANCH}'..." -svn copy -m "${MESSAGE}" "${URI}" "${REPO_ROOT}/branches/${BRANCH}" +svn copy -m "${MESSAGE}" "${URI}" "${REPO_ROOT}/${SUBDIR}/branches/${BRANCH}"