Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ linters:
- github.com/go-git/go-git/v6/storage.Storer
- github.com/go-git/go-git/v6/plumbing/storer.EncodedObjectIter
- github.com/go-git/go-billy/v6.Filesystem
- entire.io/git-sync/internal/auth.Method
- entire.io/entire/git-sync/internal/auth.Method
nolintlint:
require-explanation: true
require-specific: true
Expand Down
6 changes: 3 additions & 3 deletions cmd/git-sync-bench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (

git "github.com/go-git/go-git/v6"

"entire.io/git-sync/internal/validation"
"entire.io/git-sync/pkg/gitsync"
"entire.io/git-sync/pkg/gitsync/unstable"
"entire.io/entire/git-sync/internal/validation"
"entire.io/entire/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync/unstable"
)

type scenario string
Expand Down
2 changes: 1 addition & 1 deletion cmd/git-sync-bench/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

"entire.io/git-sync/pkg/gitsync/unstable"
"entire.io/entire/git-sync/pkg/gitsync/unstable"
)

func TestSummarizeRuns(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/git-sync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"os"
"strings"

"entire.io/git-sync/internal/validation"
"entire.io/git-sync/pkg/gitsync"
"entire.io/git-sync/pkg/gitsync/unstable"
"entire.io/entire/git-sync/internal/validation"
"entire.io/entire/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync/unstable"
"github.com/go-git/go-git/v6/plumbing"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/git-sync/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"testing"
"time"

"entire.io/git-sync/pkg/gitsync/unstable"
"entire.io/entire/git-sync/pkg/gitsync/unstable"
billy "github.com/go-git/go-billy/v6"
"github.com/go-git/go-billy/v6/memfs"
git "github.com/go-git/go-git/v6"
Expand Down
2 changes: 1 addition & 1 deletion docs/embedding.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import (
"context"
"net/http"

"entire.io/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync"
)

func runSync(ctx context.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module entire.io/git-sync
module entire.io/entire/git-sync

go 1.25.2

Expand Down
4 changes: 2 additions & 2 deletions internal/convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package convert
import (
"github.com/go-git/go-git/v6/plumbing"

"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

// DesiredRefs converts planner desired refs to gitproto desired refs.
Expand Down
4 changes: 2 additions & 2 deletions internal/convert/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/go-git/go-git/v6/plumbing"

"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

func TestDesiredRefsForPlans(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/planner/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sort"

"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/validation"
"github.com/go-git/go-git/v6/plumbing"
"github.com/go-git/go-git/v6/plumbing/object"
"github.com/go-git/go-git/v6/plumbing/storer"
Expand Down
2 changes: 1 addition & 1 deletion internal/planner/planner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/validation"
git "github.com/go-git/go-git/v6"
"github.com/go-git/go-git/v6/plumbing"
"github.com/go-git/go-git/v6/plumbing/object"
Expand Down
2 changes: 1 addition & 1 deletion internal/planner/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"strings"

"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/validation"
"github.com/go-git/go-git/v6/plumbing"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/strategy/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"github.com/go-git/go-git/v6/plumbing/storer"
"github.com/go-git/go-git/v6/storage/memory"

"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/strategy/bootstrap/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/go-git/go-git/v6/plumbing/transport"
"github.com/go-git/go-git/v6/storage/memory"

"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

func TestIsTargetBodyLimitError(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/strategy/incremental/incremental.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"github.com/go-git/go-git/v6/plumbing"

"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

// Params holds the inputs for an incremental relay execution.
Expand Down
6 changes: 3 additions & 3 deletions internal/strategy/incremental/incremental_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

"github.com/go-git/go-git/v6/plumbing"

"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

func TestPlansToPushPlans(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/strategy/materialized/materialized.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/go-git/go-git/v6/plumbing"
"github.com/go-git/go-git/v6/plumbing/storer"

"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

// Params holds the inputs for a materialized push.
Expand Down
8 changes: 4 additions & 4 deletions internal/strategy/materialized/materialized_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"github.com/go-git/go-git/v6/plumbing/object"
"github.com/go-git/go-git/v6/plumbing/storer"

"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/git-sync/internal/syncertest"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/syncertest"
)

func TestPlansToPushPlans(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/strategy/replicate/replicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/go-git/go-git/v6/plumbing"

"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

// Params holds the inputs for a replication relay execution.
Expand Down
4 changes: 2 additions & 2 deletions internal/strategy/replicate/replicate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/go-git/go-git/v6/plumbing"

"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)

type fakeSourceService struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/syncer/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/go-git/go-git/v6/plumbing/transport"
transporthttp "github.com/go-git/go-git/v6/plumbing/transport/http"

"entire.io/git-sync/internal/auth"
"entire.io/entire/git-sync/internal/auth"
)

func TestResolveAuthMethodPrefersExplicitToken(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/syncer/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package syncer

import (
"context"
"entire.io/git-sync/internal/syncertest"
"entire.io/entire/git-sync/internal/syncertest"
git "github.com/go-git/go-git/v6"
"github.com/go-git/go-git/v6/plumbing"
"github.com/go-git/go-git/v6/plumbing/storer"
Expand Down
6 changes: 3 additions & 3 deletions internal/syncer/git_http_backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"sync"
"testing"

"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
bstrap "entire.io/git-sync/internal/strategy/bootstrap"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
bstrap "entire.io/entire/git-sync/internal/strategy/bootstrap"
"github.com/go-git/go-git/v6/plumbing"
)

Expand Down
8 changes: 4 additions & 4 deletions internal/syncer/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"testing"
"time"

"entire.io/git-sync/internal/auth"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/git-sync/internal/syncertest"
"entire.io/entire/git-sync/internal/auth"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/syncertest"
billy "github.com/go-git/go-billy/v6"
git "github.com/go-git/go-git/v6"
"github.com/go-git/go-git/v6/plumbing"
Expand Down
2 changes: 1 addition & 1 deletion internal/syncer/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"sync"

"entire.io/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/gitproto"
)

// ServiceStats tracks transfer statistics for a single service.
Expand Down
18 changes: 9 additions & 9 deletions internal/syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import (
"github.com/go-git/go-git/v6/plumbing/transport"
"github.com/go-git/go-git/v6/storage/memory"

"entire.io/git-sync/internal/auth"
"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
bstrap "entire.io/git-sync/internal/strategy/bootstrap"
"entire.io/git-sync/internal/strategy/incremental"
"entire.io/git-sync/internal/strategy/materialized"
repstrat "entire.io/git-sync/internal/strategy/replicate"
"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/auth"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
bstrap "entire.io/entire/git-sync/internal/strategy/bootstrap"
"entire.io/entire/git-sync/internal/strategy/incremental"
"entire.io/entire/git-sync/internal/strategy/materialized"
repstrat "entire.io/entire/git-sync/internal/strategy/replicate"
"entire.io/entire/git-sync/internal/validation"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/syncer/syncer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package syncer
import (
"testing"

bstrap "entire.io/git-sync/internal/strategy/bootstrap"
bstrap "entire.io/entire/git-sync/internal/strategy/bootstrap"
)

func TestGitHubOwnerRepo(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion mise-tasks/lint/licenses
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ go-licenses csv ./cmd/git-sync 2>/dev/null | sort | uniq > "$TEMP_FILE"
VIOLATIONS=()
while IFS=',' read -r package _url license; do
# Skip internal packages
if [[ "$package" == entire.io/git-sync/* ]]; then
if [[ "$package" == entire.io/entire/git-sync/* ]]; then
continue
fi

Expand Down
4 changes: 2 additions & 2 deletions pkg/gitsync/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"net/http"

"entire.io/git-sync/internal/validation"
"entire.io/git-sync/pkg/gitsync/internalbridge"
"entire.io/entire/git-sync/internal/validation"
"entire.io/entire/git-sync/pkg/gitsync/internalbridge"
)

// Options configures a Client. It is intentionally small in the first public cut.
Expand Down
2 changes: 1 addition & 1 deletion pkg/gitsync/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/go-git/go-git/v6/plumbing/protocol/packp"
"github.com/go-git/go-git/v6/plumbing/transport"

"entire.io/git-sync/internal/syncertest"
"entire.io/entire/git-sync/internal/syncertest"
)

type errAuthProvider struct{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/gitsync/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net/http"

"entire.io/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync"
)

func ExampleClient_Sync() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/gitsync/internalbridge/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"net/http"

"entire.io/git-sync/internal/syncer"
"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/syncer"
"entire.io/entire/git-sync/internal/validation"
)

type ProtocolMode string
Expand Down
4 changes: 2 additions & 2 deletions pkg/gitsync/internalbridge/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package internalbridge
import (
"github.com/go-git/go-git/v6/plumbing"

"entire.io/git-sync/internal/planner"
"entire.io/git-sync/internal/syncer"
"entire.io/entire/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/syncer"
)

type RefKind string
Expand Down
4 changes: 2 additions & 2 deletions pkg/gitsync/internalbridge/model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/go-git/go-git/v6/plumbing"

"entire.io/git-sync/internal/planner"
"entire.io/git-sync/internal/syncer"
"entire.io/entire/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/syncer"
)

func TestHashStringZeroHashIsEmpty(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/gitsync/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package gitsync

import (
"context"
"entire.io/git-sync/pkg/gitsync/internalbridge"
"entire.io/entire/git-sync/pkg/gitsync/internalbridge"
)

// ProtocolMode controls source-side protocol negotiation.
Expand Down
Loading
Loading