package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"os/exec"
"strings"
"github.com/go-git/go-git/v6"
"github.com/go-git/go-git/v6/config"
"github.com/go-git/go-git/v6/plumbing"
gitclient "github.com/go-git/go-git/v6/plumbing/client"
githttp "github.com/go-git/go-git/v6/plumbing/transport/http"
"github.com/go-git/go-git/v6/storage/memory"
"github.com/rwinkhart/go-boilerplate/back"
"github.com/rwinkhart/go-boilerplate/other"
)
const workingDir = "repos-new"
const finishedDir = "repos"
const hashName = ".gvv-hash"
type giteaRespT struct {
Data []struct {
MirrorInterval string `json:"mirror_interval"`
Language string `json:"language"`
MasterURL string `json:"original_url"`
Name string `json:"name"`
}
}
func main() {
// args
if len(os.Args) < 3 {
fmt.Println("Usage: " + os.Args[0] + "