From: Elan Ruusamäe Date: Tue, 3 May 2016 21:02:36 +0000 (+0300) Subject: builder: push also notes X-Git-Tag: auto/th/rpm-build-tools-4.8-5~5 X-Git-Url: https://git.pld-linux.org/?p=packages%2Frpm-build-tools.git;a=commitdiff_plain;h=71435fd3805effe47f7219d19e3ca93817866e04 builder: push also notes seems to be working, having tested this few weeks http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2016-April/024797.html if this still breaks, then you should had responded in mailing list... --- diff --git a/builder.sh b/builder.sh index 4fba97d..978412d 100755 --- a/builder.sh +++ b/builder.sh @@ -962,7 +962,10 @@ get_spec() { echo "Warning: package not in CVS - assuming new package" NOCVSSPEC="yes" } - git config --local --add "remote.$REMOTE_PLD.fetch" 'refs/notes/*:refs/notes/*' + git config --local --add "remote.$REMOTE_PLD.fetch" 'refs/notes/*:refs/notes/*' + git config --local --add "remote.$REMOTE_PLD.push" 'refs/notes/*:refs/notes/*' + git config --local --add "remote.$REMOTE_PLD.push" HEAD + git config --local push.default current git remote set-url --push $REMOTE_PLD ssh://${GIT_PUSH}/${PACKAGES_DIR}/${ASSUMED_NAME} ) fi @@ -973,7 +976,10 @@ get_spec() { fi 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 config --local --add "remote.$REMOTE_PLD.fetch" 'refs/notes/*:refs/notes/*' + git config --local --add "remote.$REMOTE_PLD.push" 'refs/heads/*:refs/remotes/origin/*' + git config --local --add "remote.$REMOTE_PLD.push" HEAD + git config --local push.default current git remote set-url --push $REMOTE_PLD ssh://${GIT_PUSH}/${PACKAGES_DIR}/${ASSUMED_NAME} CVSTAG=${CVSTAG:-"master"} fi