[packages/rpm-build-tools] Set push url for repos fetched with --depth option

draenog draenog at pld-linux.org
Wed Jul 11 02:39:57 CEST 2012


commit 48184c961aa1deb378528d94fb1922556e057f78
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Wed Jul 11 00:35:56 2012 +0100

    Set push url for repos fetched with --depth option

 builder.sh | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/builder.sh b/builder.sh
index b275d3b..c396f39 100755
--- a/builder.sh
+++ b/builder.sh
@@ -882,6 +882,7 @@ get_spec() {
 				git init
 				git remote add $REMOTE_PLD ${GIT_SERVER}/${PACKAGES_DIR}/${ASSUMED_NAME}.git
 				git config --local --add "remote.$REMOTE_PLD.fetch"  'refs/notes/*:refs/notes/*'
+				git remote set-url --push  $REMOTE_PLD ssh://${GIT_PUSH}/${PACKAGES_DIR}/${ASSUMED_NAME}
 				CVSTAG=${CVSTAG:-"master"}
 			fi
 			local refs=''


More information about the pld-cvs-commit mailing list