Skip to contentSkip to conversation

cr-publish-flight-logs: Provide ref path for osstest branch push

PATCH New Ian Jackson 1 participant 1 message May 19, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cr-publish-flight-logs: Provide ref path for osstest branch push

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.)

---
 cr-publish-flight-logs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cr-publish-flight-logs +1 -1
index f971522..1feb52d 100755
@@ -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'");
 }
 
Signature · 1 line
1.7.10.4