]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder: push also notes
authorElan Ruusamäe <glen@delfi.ee>
Tue, 3 May 2016 21:02:36 +0000 (00:02 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 3 May 2016 21:03:38 +0000 (00:03 +0300)
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...

builder.sh

index 4fba97dc68460faeb4cc1a85397b5300b9ae4acd..978412d0d85b8a19626d179794b9709be4fac4c2 100755 (executable)
@@ -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
This page took 0.440692 seconds and 4 git commands to generate.