diff --git a/main.go b/main.go index b2d93c3..15ef157 100644 --- a/main.go +++ b/main.go @@ -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, }) }