]> TLD Linux GIT Repositories - packages/rpm-build-tools.git/blobdiff - builder
- do not enter to REPO_DIR when cloning package repo
[packages/rpm-build-tools.git] / builder
diff --git a/builder b/builder
index 2be0369bbc4b64efbda90c9cdd23d4397e803650..484cb1d67d640e8e16a1d1e040af3cc256917c73 100755 (executable)
--- a/builder
+++ b/builder
@@ -816,7 +816,7 @@ get_spec() {
                        else
                                (
                                        unset GIT_WORK_TREE
-                                       git clone  -o $REMOTE_PLD ${GIT_SERVER}:${PACKAGES_DIR}/${ASSUMED_NAME}.git || {
+                                       git clone -o $REMOTE_PLD ${GIT_SERVER}:${PACKAGES_DIR}/${ASSUMED_NAME}.git "$REPO_DIR/${ASSUMED_NAME}" || {
                                                # softfail if new package, i.e not yet added to PLD rep
                                                [ ! -f "$ASSUMED_NAME/$SPECFILE" ] && Exit_error err_no_spec_in_repo
                                                echo "Warning: package not in CVS - assuming new package"