speculator: Fetch before deciding head is fresh
This commit is contained in:
parent
a80fcfa83b
commit
740cc66a7c
1 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,10 @@ func (s *server) serveSpec(w http.ResponseWriter, req *http.Request) {
|
|||
var sha string
|
||||
|
||||
if strings.ToLower(req.URL.Path) == "/spec/head" {
|
||||
if err := gitFetch(s.matrixDocCloneURL); err != nil {
|
||||
writeError(w, 500, err)
|
||||
return
|
||||
}
|
||||
originHead, err := s.getSHAOf("origin/master")
|
||||
if err != nil {
|
||||
writeError(w, 500, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue