This commit is contained in:
Tim Schubert 2023-05-25 16:46:55 +02:00 committed by Tim Schubert
parent 42518c499c
commit 1d29a3cc54

11
main.go
View file

@ -3,6 +3,7 @@ package main
import (
"bufio"
"crypto/tls"
"errors"
"flag"
"fmt"
"io"
@ -13,7 +14,6 @@ import (
"path/filepath"
"sync"
"time"
"errors"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config"
@ -32,7 +32,6 @@ var (
var cm sync.Mutex
func commit(
tree *git.Worktree,
padfile string,
@ -59,10 +58,10 @@ func commit(
fmt.Sprintf("Updated %s from %s", padfile, url),
&git.CommitOptions{
All: false,
Author: &object.Signature {
Name: "Pad Archiver",
Author: &object.Signature{
Name: "Pad Archiver",
Email: "pad-archiver@dadada.li",
When: time.Now(),
When: time.Now(),
},
},
)
@ -128,7 +127,7 @@ func push(
) error {
return r.Push(&git.PushOptions{
RemoteName: remote,
Auth: auth,
Auth: auth,
})
}