ref: master
commands/sync.go
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
package commands import ( "git.sr.ht/~porcellis/t/config" "os" "os/exec" ) func Sync(config config.TConfig) error { cmd := exec.Command("git", "-C", config.BasePath, "push", config.Sync.Remote, "-u", "--quiet") cmd.Stdin = nil cmd.Stdout = os.NewFile(0, os.DevNull) cmd.Stderr = os.Stderr return cmd.Run() } |