From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 11/27] ap-push: Use refs/heads/ for destinations Date: Wed, 16 Sep 2015 14:35:14 +0100 Message-ID: <1442410530-9665-12-git-send-email-ian.jackson@eu.citrix.com> References: <1442410530-9665-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZcCsD-0000aL-6j for xen-devel@lists.xenproject.org; Wed, 16 Sep 2015 13:35:45 +0000 In-Reply-To: <1442410530-9665-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org When the destination is a branch, specify refs/heads/ explicitly. This makes ap-push work even if the ref does not yet exist on the destination. There is no functional change for an existing installation pushing to an existing branch. But for a hypothetical new installation, this would be necessary. And, more relevantly, when new "branches" are invented, the use of an existing ap-push case as a template will generate a new case which creates the branch as is necessary. I leave the more complex osstest case alone. It's not clear to me whether the destination ref not existing is an installation problem of such severity that indeed ap-push should fail. Signed-off-by: Ian Jackson --- ap-push | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ap-push b/ap-push index 5967b42..1dd5b05 100755 --- a/ap-push +++ b/ap-push @@ -52,14 +52,14 @@ xen-3.*) ;; xen-unstable) cd $repos/xen - git push $TREE_XEN $revision:master + git push $TREE_XEN $revision:refs/heads/master ;; xen-*-testing) cd $repos/xen xenversion=$branch xenversion=${branch%-testing} xenversion=${xenversion#xen-} - git push $TREE_XEN $revision:stable-$xenversion + git push $TREE_XEN $revision:refs/heads/stable-$xenversion ;; qemu-mainline) cd $repos/qemu-mainline @@ -67,11 +67,11 @@ qemu-mainline) ;; qemu-upstream-*) cd $repos/$branch - git push $TREE_QEMU_UPSTREAM $revision:master + git push $TREE_QEMU_UPSTREAM $revision:refs/heads/master ;; linux-3.*) cd $repos/linux - git push $TREE_LINUX $revision:tested/$branch + git push $TREE_LINUX $revision:refs/heads/tested/$branch ;; linux-2.6.39) cd $repos/linux @@ -83,11 +83,11 @@ linux-xen-*) ;; libvirt) cd $repos/libvirt - git push $TREE_LIBVIRT $revision:xen-tested-master + git push $TREE_LIBVIRT $revision:refs/heads/xen-tested-master ;; rumpuserxen) cd $repos/rumpuserxen - git push $TREE_RUMPUSERXEN $revision:xen-tested-master + git push $TREE_RUMPUSERXEN $revision:refs/heads/xen-tested-master ;; seabios) cd $repos/seabios -- 1.7.10.4