reformat
This commit is contained in:
parent
42518c499c
commit
1d29a3cc54
1 changed files with 5 additions and 6 deletions
5
main.go
5
main.go
|
@ -3,6 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
"errors"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
@ -13,7 +14,6 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
"errors"
|
|
||||||
|
|
||||||
"github.com/go-git/go-git/v5"
|
"github.com/go-git/go-git/v5"
|
||||||
"github.com/go-git/go-git/v5/config"
|
"github.com/go-git/go-git/v5/config"
|
||||||
|
@ -32,7 +32,6 @@ var (
|
||||||
|
|
||||||
var cm sync.Mutex
|
var cm sync.Mutex
|
||||||
|
|
||||||
|
|
||||||
func commit(
|
func commit(
|
||||||
tree *git.Worktree,
|
tree *git.Worktree,
|
||||||
padfile string,
|
padfile string,
|
||||||
|
@ -59,7 +58,7 @@ func commit(
|
||||||
fmt.Sprintf("Updated %s from %s", padfile, url),
|
fmt.Sprintf("Updated %s from %s", padfile, url),
|
||||||
&git.CommitOptions{
|
&git.CommitOptions{
|
||||||
All: false,
|
All: false,
|
||||||
Author: &object.Signature {
|
Author: &object.Signature{
|
||||||
Name: "Pad Archiver",
|
Name: "Pad Archiver",
|
||||||
Email: "pad-archiver@dadada.li",
|
Email: "pad-archiver@dadada.li",
|
||||||
When: time.Now(),
|
When: time.Now(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue