From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH] cr-publish-flight-logs: Provide ref path for osstest branch push Date: Mon, 19 May 2014 11:58:47 +0100 Message-ID: <1400497127-3599-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.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WmLHV-0004EH-Se for xen-devel@lists.xenproject.org; Mon, 19 May 2014 10:58:58 +0000 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 Without this, the push fails if the osstest tree is in detached head state. (Which is a situation which can occur during by-hand testing.) Signed-off-by: Ian Jackson --- cr-publish-flight-logs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr-publish-flight-logs b/cr-publish-flight-logs index f971522..1feb52d 100755 --- a/cr-publish-flight-logs +++ b/cr-publish-flight-logs @@ -43,7 +43,7 @@ if ($push_harness) { my $githost= $c{HarnessPublishGitUserHost}; my $gitdir= $c{HarnessPublishGitRepoDir}; - system_checked("git push $githost:$gitdir HEAD:flight-$flight"); + system_checked("git push $githost:$gitdir HEAD:refs/heads/flight-$flight"); system_checked("ssh $githost 'cd $gitdir && git update-server-info'"); } -- 1.7.10.4