Jaypore CI

> Jaypore CI: Minimal, Offline, Local CI system.
Log | Files | Refs | README

pull.go (387B)


      1 package jci
      2 
      3 import (
      4 	"fmt"
      5 )
      6 
      7 // Pull fetches CI results from remote
      8 func Pull(args []string) error {
      9 	remote := "origin"
     10 	if len(args) > 0 {
     11 		remote = args[0]
     12 	}
     13 
     14 	fmt.Printf("Fetching CI results from %s...\n", remote)
     15 
     16 	// Fetch all refs/jci/* from remote
     17 	_, err := git("fetch", remote, "refs/jci/*:refs/jci/*")
     18 	if err != nil {
     19 		return err
     20 	}
     21 
     22 	fmt.Println("Done")
     23 	return nil
     24 }