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 <Ian.Jackson@eu.citrix.com>
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'");
}