diff --git a/README.md b/README.md index ff0c9b72b..c1113217f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ ![go-git logo](https://cdn.rawgit.com/src-d/artwork/02036484/go-git/files/go-git-github-readme-header.png) -[![GoDoc](https://godoc.org/github.com/go-git/go-git/v5?status.svg)](https://pkg.go.dev/github.com/go-git/go-git/v5) [![Build Status](https://github.com/go-git/go-git/workflows/Test/badge.svg)](https://github.com/go-git/go-git/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/go-git/go-git)](https://goreportcard.com/report/github.com/go-git/go-git) +[![GoDoc](https://godoc.org/github.com/fuskiid/go-git/v5?status.svg)](https://pkg.go.dev/github.com/fuskiid/go-git/v5) [![Build Status](https://github.com/go-git/go-git/workflows/Test/badge.svg)](https://github.com/go-git/go-git/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/go-git/go-git)](https://goreportcard.com/report/github.com/go-git/go-git) *go-git* is a highly extensible git implementation library written in **pure Go**. -It can be used to manipulate git repositories at low level *(plumbing)* or high level *(porcelain)*, through an idiomatic Go API. It also supports several types of storage, such as in-memory filesystems, or custom implementations, thanks to the [`Storer`](https://pkg.go.dev/github.com/go-git/go-git/v5/plumbing/storer) interface. +It can be used to manipulate git repositories at low level *(plumbing)* or high level *(porcelain)*, through an idiomatic Go API. It also supports several types of storage, such as in-memory filesystems, or custom implementations, thanks to the [`Storer`](https://pkg.go.dev/github.com/fuskiid/go-git/v5/plumbing/storer) interface. It's being actively developed since 2015 and is being used extensively by [Keybase](https://keybase.io/blog/encrypted-git-for-everyone), [Gitea](https://gitea.io/en-us/) or [Pulumi](https://github.com/search?q=org%3Apulumi+go-git&type=Code), and by many other libraries and tools. @@ -29,7 +29,7 @@ Installation The recommended way to install *go-git* is: ```go -import "github.com/go-git/go-git/v5" // with go modules enabled (GO111MODULE=on or outside GOPATH) +import "github.com/fuskiid/go-git/v5" // with go modules enabled (GO111MODULE=on or outside GOPATH) import "github.com/go-git/go-git" // with go modules disabled ``` diff --git a/_examples/azure_devops/main.go b/_examples/azure_devops/main.go index 9c02ca080..84aa16532 100644 --- a/_examples/azure_devops/main.go +++ b/_examples/azure_devops/main.go @@ -4,11 +4,11 @@ import ( "fmt" "os" - git "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/http" + git "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/http" ) func main() { diff --git a/_examples/blame/main.go b/_examples/blame/main.go index 3ffae17b5..5044bb1b4 100644 --- a/_examples/blame/main.go +++ b/_examples/blame/main.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" ) // Basic example of how to blame a repository. diff --git a/_examples/branch/main.go b/_examples/branch/main.go index b4b69de4d..ec470296a 100644 --- a/_examples/branch/main.go +++ b/_examples/branch/main.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing" ) // An example of how to create and remove branches or any other kind of reference. diff --git a/_examples/checkout/main.go b/_examples/checkout/main.go index 92942c474..a823ebf4c 100644 --- a/_examples/checkout/main.go +++ b/_examples/checkout/main.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing" ) // Basic example of how to checkout a specific commit. diff --git a/_examples/clone/auth/basic/access_token/main.go b/_examples/clone/auth/basic/access_token/main.go index c50d02616..52b886b6f 100644 --- a/_examples/clone/auth/basic/access_token/main.go +++ b/_examples/clone/auth/basic/access_token/main.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - git "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/transport/http" + git "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/transport/http" ) func main() { diff --git a/_examples/clone/auth/basic/username_password/main.go b/_examples/clone/auth/basic/username_password/main.go index 845732085..d31959e59 100644 --- a/_examples/clone/auth/basic/username_password/main.go +++ b/_examples/clone/auth/basic/username_password/main.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - git "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/transport/http" + git "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/transport/http" ) func main() { diff --git a/_examples/clone/auth/ssh/main.go b/_examples/clone/auth/ssh/main.go index 5f21d9076..54d3057b1 100644 --- a/_examples/clone/auth/ssh/main.go +++ b/_examples/clone/auth/ssh/main.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - git "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/transport/ssh" + git "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/transport/ssh" ) func main() { diff --git a/_examples/clone/main.go b/_examples/clone/main.go index 0315f91a9..b1853b60c 100644 --- a/_examples/clone/main.go +++ b/_examples/clone/main.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" ) // Basic example of how to clone a repository using clone options. diff --git a/_examples/commit/main.go b/_examples/commit/main.go index 3f3c88048..56e3f1159 100644 --- a/_examples/commit/main.go +++ b/_examples/commit/main.go @@ -6,9 +6,9 @@ import ( "path/filepath" "time" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/object" ) // Basic example of how to commit changes to the current branch to an existing diff --git a/_examples/common_test.go b/_examples/common_test.go index 6630f15ee..563b18a55 100644 --- a/_examples/common_test.go +++ b/_examples/common_test.go @@ -74,7 +74,7 @@ func tempFolder() string { func packageFolder() string { return filepath.Join( build.Default.GOPATH, - "src", "github.com/go-git/go-git/v5", + "src", "github.com/fuskiid/go-git/v5", ) } diff --git a/_examples/context/main.go b/_examples/context/main.go index 7516e7868..e7ef7f040 100644 --- a/_examples/context/main.go +++ b/_examples/context/main.go @@ -5,8 +5,8 @@ import ( "os" "os/signal" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" ) // Graceful cancellation example of a basic git operation such as Clone. diff --git a/_examples/custom_http/main.go b/_examples/custom_http/main.go index 8dc1697ff..3c0b1ed4b 100644 --- a/_examples/custom_http/main.go +++ b/_examples/custom_http/main.go @@ -7,11 +7,11 @@ import ( "os" "time" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/transport/client" - githttp "github.com/go-git/go-git/v5/plumbing/transport/http" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/transport/client" + githttp "github.com/fuskiid/go-git/v5/plumbing/transport/http" + "github.com/fuskiid/go-git/v5/storage/memory" ) // Here is an example to configure http client according to our own needs. diff --git a/_examples/find-if-any-tag-point-head/main.go b/_examples/find-if-any-tag-point-head/main.go index 834aea2bb..ef97abc6f 100644 --- a/_examples/find-if-any-tag-point-head/main.go +++ b/_examples/find-if-any-tag-point-head/main.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing" ) // Basic example of how to find if HEAD is tagged. diff --git a/_examples/log/main.go b/_examples/log/main.go index 35de58a83..56d18115d 100644 --- a/_examples/log/main.go +++ b/_examples/log/main.go @@ -4,10 +4,10 @@ import ( "fmt" "time" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/storage/memory" ) // Example of how to: diff --git a/_examples/ls-remote/main.go b/_examples/ls-remote/main.go index e49e8c9e4..812b5d24e 100644 --- a/_examples/ls-remote/main.go +++ b/_examples/ls-remote/main.go @@ -4,11 +4,11 @@ import ( "log" "os" - "github.com/go-git/go-git/v5" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/storage/memory" - . "github.com/go-git/go-git/v5/_examples" + . "github.com/fuskiid/go-git/v5/_examples" ) // Retrieve remote tags without cloning repository diff --git a/_examples/ls/main.go b/_examples/ls/main.go index 95a0c60f1..c90b9ca57 100644 --- a/_examples/ls/main.go +++ b/_examples/ls/main.go @@ -8,14 +8,14 @@ import ( "strings" "github.com/emirpasic/gods/trees/binaryheap" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - commitgraph_fmt "github.com/go-git/go-git/v5/plumbing/format/commitgraph" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/object/commitgraph" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + commitgraph_fmt "github.com/fuskiid/go-git/v5/plumbing/format/commitgraph" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/object/commitgraph" + "github.com/fuskiid/go-git/v5/storage/filesystem" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/osfs" diff --git a/_examples/merge_base/helpers.go b/_examples/merge_base/helpers.go index 2b493c80b..32777b063 100644 --- a/_examples/merge_base/helpers.go +++ b/_examples/merge_base/helpers.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "github.com/go-git/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/object" ) func checkIfError(err error, code exitCode, mainReason string, v ...interface{}) { diff --git a/_examples/merge_base/main.go b/_examples/merge_base/main.go index 46725e1a7..e9a046e7e 100644 --- a/_examples/merge_base/main.go +++ b/_examples/merge_base/main.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/go-git/go-git/v5" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/object" ) type exitCode int diff --git a/_examples/open/main.go b/_examples/open/main.go index fdc8378ee..d78022644 100644 --- a/_examples/open/main.go +++ b/_examples/open/main.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/object" ) // Open an existing repository in a specific folder. diff --git a/_examples/progress/main.go b/_examples/progress/main.go index c15e32f08..e96d0afb4 100644 --- a/_examples/progress/main.go +++ b/_examples/progress/main.go @@ -3,8 +3,8 @@ package main import ( "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" ) // Example of how to show the progress when you do a basic clone operation. diff --git a/_examples/pull/main.go b/_examples/pull/main.go index cfd0551ac..e81808a03 100644 --- a/_examples/pull/main.go +++ b/_examples/pull/main.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" ) // Pull changes from a remote repository diff --git a/_examples/push/main.go b/_examples/push/main.go index 01eceaebf..2004cb24f 100644 --- a/_examples/push/main.go +++ b/_examples/push/main.go @@ -3,8 +3,8 @@ package main import ( "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" ) // Example of how to open a repository in a specific path, and push to diff --git a/_examples/remotes/main.go b/_examples/remotes/main.go index d09957eae..1192ecff5 100644 --- a/_examples/remotes/main.go +++ b/_examples/remotes/main.go @@ -3,11 +3,11 @@ package main import ( "fmt" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/storage/memory" ) // Example of how to: diff --git a/_examples/revision/main.go b/_examples/revision/main.go index ddaf25e53..e5d0e756e 100644 --- a/_examples/revision/main.go +++ b/_examples/revision/main.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing" ) // Example how to resolve a revision into its commit counterpart diff --git a/_examples/sha256/main.go b/_examples/sha256/main.go index e1772d274..90c2875db 100644 --- a/_examples/sha256/main.go +++ b/_examples/sha256/main.go @@ -6,10 +6,10 @@ import ( "path/filepath" "time" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing/format/config" - "github.com/go-git/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing/format/config" + "github.com/fuskiid/go-git/v5/plumbing/object" ) // This example requires building with the sha256 tag for it to work: diff --git a/_examples/showcase/main.go b/_examples/showcase/main.go index e2c2b5362..da6c4fa5b 100644 --- a/_examples/showcase/main.go +++ b/_examples/showcase/main.go @@ -5,10 +5,10 @@ import ( "os" "strings" - "github.com/go-git/go-git/v5" - "github.com/go-git/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5" + "github.com/fuskiid/go-git/v5/plumbing/object" - . "github.com/go-git/go-git/v5/_examples" + . "github.com/fuskiid/go-git/v5/_examples" ) // Example of an specific use case: diff --git a/_examples/storage/README.md b/_examples/storage/README.md index 92547cc6c..ab21c4760 100644 --- a/_examples/storage/README.md +++ b/_examples/storage/README.md @@ -8,7 +8,7 @@ ### and what this means ... *git* has a very well defined storage system, the `.git` directory, present on any repository. This is the place where `git` stores all the [`objects`](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects), [`references`](https://git-scm.com/book/es/v2/Git-Internals-Git-References) and [`configuration`](https://git-scm.com/docs/git-config#_configuration_file). This information is stored in plain files. -Our original **go-git** version was designed to work in memory, some time after we added support to read the `.git`, and now we have added support for fully customized [storages](https://godoc.org/github.com/go-git/go-git/v5/storage#Storer). +Our original **go-git** version was designed to work in memory, some time after we added support to read the `.git`, and now we have added support for fully customized [storages](https://godoc.org/github.com/fuskiid/go-git/v5/storage#Storer). This means that the internal database of any repository can be saved and accessed on any support, databases, distributed filesystems, etc. This functionality is pretty similar to the [libgit2 backends](http://blog.deveo.com/your-git-repository-in-a-database-pluggable-backends-in-libgit2/) diff --git a/_examples/submodule/main.go b/_examples/submodule/main.go index 1a7619363..ff64d58e7 100644 --- a/_examples/submodule/main.go +++ b/_examples/submodule/main.go @@ -3,8 +3,8 @@ package main import ( "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" ) // Basic example of how to clone a repository including a submodule and diff --git a/_examples/tag-create-push/main.go b/_examples/tag-create-push/main.go index b820c76b7..9ca125e52 100644 --- a/_examples/tag-create-push/main.go +++ b/_examples/tag-create-push/main.go @@ -5,11 +5,11 @@ import ( "log" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/transport/ssh" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/transport/ssh" ) // Example of how create a tag and push it to a remote. diff --git a/_examples/tag/main.go b/_examples/tag/main.go index 3f47ab704..309ac23e3 100644 --- a/_examples/tag/main.go +++ b/_examples/tag/main.go @@ -4,10 +4,10 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5" - . "github.com/go-git/go-git/v5/_examples" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5" + . "github.com/fuskiid/go-git/v5/_examples" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/object" ) // Basic example of how to list tags. diff --git a/blame.go b/blame.go index 2a877dcdf..c90162b94 100644 --- a/blame.go +++ b/blame.go @@ -10,9 +10,9 @@ import ( "time" "unicode/utf8" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/utils/diff" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/utils/diff" "github.com/sergi/go-diff/diffmatchpatch" ) diff --git a/blame_test.go b/blame_test.go index 1c5db266f..72e787d6b 100644 --- a/blame_test.go +++ b/blame_test.go @@ -1,8 +1,8 @@ package git import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/object" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/cli/go-git/receive_pack.go b/cli/go-git/receive_pack.go index 2a4fd1f4d..d7b29dc84 100644 --- a/cli/go-git/receive_pack.go +++ b/cli/go-git/receive_pack.go @@ -5,7 +5,7 @@ import ( "os" "path/filepath" - "github.com/go-git/go-git/v5/plumbing/transport/file" + "github.com/fuskiid/go-git/v5/plumbing/transport/file" ) type CmdReceivePack struct { diff --git a/cli/go-git/upload_pack.go b/cli/go-git/upload_pack.go index 975c3a7a1..4ce351d44 100644 --- a/cli/go-git/upload_pack.go +++ b/cli/go-git/upload_pack.go @@ -5,7 +5,7 @@ import ( "os" "path/filepath" - "github.com/go-git/go-git/v5/plumbing/transport/file" + "github.com/fuskiid/go-git/v5/plumbing/transport/file" ) type CmdUploadPack struct { diff --git a/common_test.go b/common_test.go index ff4d6b813..8b8d15310 100644 --- a/common_test.go +++ b/common_test.go @@ -5,12 +5,12 @@ import ( "testing" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/memfs" diff --git a/config/branch.go b/config/branch.go index 652270a28..967710976 100644 --- a/config/branch.go +++ b/config/branch.go @@ -4,8 +4,8 @@ import ( "errors" "strings" - "github.com/go-git/go-git/v5/plumbing" - format "github.com/go-git/go-git/v5/plumbing/format/config" + "github.com/fuskiid/go-git/v5/plumbing" + format "github.com/fuskiid/go-git/v5/plumbing/format/config" ) var ( diff --git a/config/branch_test.go b/config/branch_test.go index ae1fe856e..ae6e4e25e 100644 --- a/config/branch_test.go +++ b/config/branch_test.go @@ -1,7 +1,7 @@ package config import ( - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/config/config.go b/config/config.go index 82af12d28..61a958a10 100644 --- a/config/config.go +++ b/config/config.go @@ -11,9 +11,9 @@ import ( "sort" "strconv" + "github.com/fuskiid/go-git/v5/internal/url" + format "github.com/fuskiid/go-git/v5/plumbing/format/config" "github.com/go-git/go-billy/v5/osfs" - "github.com/go-git/go-git/v5/internal/url" - format "github.com/go-git/go-git/v5/plumbing/format/config" ) const ( diff --git a/config/config_test.go b/config/config_test.go index 7e9483f6f..5315284a9 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "strings" + "github.com/fuskiid/go-git/v5/plumbing" "github.com/go-git/go-billy/v5/osfs" "github.com/go-git/go-billy/v5/util" - "github.com/go-git/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/config/modules.go b/config/modules.go index 1c10aa354..fe9ebc17d 100644 --- a/config/modules.go +++ b/config/modules.go @@ -5,7 +5,7 @@ import ( "errors" "regexp" - format "github.com/go-git/go-git/v5/plumbing/format/config" + format "github.com/fuskiid/go-git/v5/plumbing/format/config" ) var ( diff --git a/config/refspec.go b/config/refspec.go index e2cf8c97b..b1dfa9097 100644 --- a/config/refspec.go +++ b/config/refspec.go @@ -4,7 +4,7 @@ import ( "errors" "strings" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) const ( diff --git a/config/refspec_test.go b/config/refspec_test.go index 3be757304..af75b6db3 100644 --- a/config/refspec_test.go +++ b/config/refspec_test.go @@ -3,7 +3,7 @@ package config import ( "testing" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/config/url.go b/config/url.go index 114d6b266..6938be2a6 100644 --- a/config/url.go +++ b/config/url.go @@ -4,7 +4,7 @@ import ( "errors" "strings" - format "github.com/go-git/go-git/v5/plumbing/format/config" + format "github.com/fuskiid/go-git/v5/plumbing/format/config" ) var ( diff --git a/example_test.go b/example_test.go index 27ea4a2d5..34fc7a44e 100644 --- a/example_test.go +++ b/example_test.go @@ -7,11 +7,11 @@ import ( "os" "path/filepath" - "github.com/go-git/go-git/v5" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/transport/http" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/transport/http" + "github.com/fuskiid/go-git/v5/storage/memory" "github.com/go-git/go-billy/v5/memfs" ) diff --git a/go.mod b/go.mod index b92e1d67a..b92557905 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/go-git/go-git/v5 +module github.com/fuskiid/go-git/v5 // go-git supports the last 3 stable Go versions. go 1.18 diff --git a/object_walker.go b/object_walker.go index 3a537bd80..fdc6eba27 100644 --- a/object_walker.go +++ b/object_walker.go @@ -3,10 +3,10 @@ package git import ( "fmt" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/storage" ) type objectWalker struct { diff --git a/options.go b/options.go index 757bdc84e..4ce435cb3 100644 --- a/options.go +++ b/options.go @@ -8,12 +8,12 @@ import ( "time" "github.com/ProtonMail/go-crypto/openpgp" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - formatcfg "github.com/go-git/go-git/v5/plumbing/format/config" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband" - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + formatcfg "github.com/fuskiid/go-git/v5/plumbing/format/config" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/sideband" + "github.com/fuskiid/go-git/v5/plumbing/transport" ) // SubmoduleRescursivity defines how depth will affect any submodule recursive diff --git a/options_test.go b/options_test.go index 171222c29..504d396c7 100644 --- a/options_test.go +++ b/options_test.go @@ -3,10 +3,10 @@ package git import ( "os" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/object" "github.com/go-git/go-billy/v5/util" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/object" . "gopkg.in/check.v1" ) diff --git a/plumbing/cache/common.go b/plumbing/cache/common.go index 7b0d0c76b..1f6b7683d 100644 --- a/plumbing/cache/common.go +++ b/plumbing/cache/common.go @@ -1,6 +1,6 @@ package cache -import "github.com/go-git/go-git/v5/plumbing" +import "github.com/fuskiid/go-git/v5/plumbing" const ( Byte FileSize = 1 << (iota * 10) diff --git a/plumbing/cache/object_lru.go b/plumbing/cache/object_lru.go index c50d0d1e6..649f28e24 100644 --- a/plumbing/cache/object_lru.go +++ b/plumbing/cache/object_lru.go @@ -4,7 +4,7 @@ import ( "container/list" "sync" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) // ObjectLRU implements an object cache with an LRU eviction policy and a diff --git a/plumbing/cache/object_test.go b/plumbing/cache/object_test.go index d3a217cd5..a968823ae 100644 --- a/plumbing/cache/object_test.go +++ b/plumbing/cache/object_test.go @@ -6,7 +6,7 @@ import ( "sync" "testing" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/commitgraph/commitgraph.go b/plumbing/format/commitgraph/commitgraph.go index 3d59323f3..b2770fabf 100644 --- a/plumbing/format/commitgraph/commitgraph.go +++ b/plumbing/format/commitgraph/commitgraph.go @@ -3,7 +3,7 @@ package commitgraph import ( "time" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) // CommitData is a reduced representation of Commit as presented in the commit graph diff --git a/plumbing/format/commitgraph/commitgraph_test.go b/plumbing/format/commitgraph/commitgraph_test.go index 4540ae371..9e871eb6b 100644 --- a/plumbing/format/commitgraph/commitgraph_test.go +++ b/plumbing/format/commitgraph/commitgraph_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/commitgraph" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/util" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/commitgraph" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/format/commitgraph/encoder.go b/plumbing/format/commitgraph/encoder.go index f61025bb4..10651619d 100644 --- a/plumbing/format/commitgraph/encoder.go +++ b/plumbing/format/commitgraph/encoder.go @@ -3,9 +3,9 @@ package commitgraph import ( "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/utils/binary" ) // Encoder writes MemoryIndex structs to an output stream. diff --git a/plumbing/format/commitgraph/file.go b/plumbing/format/commitgraph/file.go index 1d25238f5..610144e3e 100644 --- a/plumbing/format/commitgraph/file.go +++ b/plumbing/format/commitgraph/file.go @@ -7,8 +7,8 @@ import ( "io" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/utils/binary" ) var ( diff --git a/plumbing/format/commitgraph/memory.go b/plumbing/format/commitgraph/memory.go index b24ce36d9..278bdc11e 100644 --- a/plumbing/format/commitgraph/memory.go +++ b/plumbing/format/commitgraph/memory.go @@ -1,7 +1,7 @@ package commitgraph import ( - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) // MemoryIndex provides a way to build the commit-graph in memory diff --git a/plumbing/format/diff/colorconfig.go b/plumbing/format/diff/colorconfig.go index 6fd415846..e2d27efa1 100644 --- a/plumbing/format/diff/colorconfig.go +++ b/plumbing/format/diff/colorconfig.go @@ -1,6 +1,6 @@ package diff -import "github.com/go-git/go-git/v5/plumbing/color" +import "github.com/fuskiid/go-git/v5/plumbing/color" // A ColorKey is a key into a ColorConfig map and also equal to the key in the // diff.color subsection of the config. See diff --git a/plumbing/format/diff/patch.go b/plumbing/format/diff/patch.go index c7678b01a..1ac812a46 100644 --- a/plumbing/format/diff/patch.go +++ b/plumbing/format/diff/patch.go @@ -1,8 +1,8 @@ package diff import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" ) // Operation defines the operation of a diff item. diff --git a/plumbing/format/diff/unified_encoder.go b/plumbing/format/diff/unified_encoder.go index fa605b198..d01a08c15 100644 --- a/plumbing/format/diff/unified_encoder.go +++ b/plumbing/format/diff/unified_encoder.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) // DefaultContextLines is the default number of context lines. diff --git a/plumbing/format/diff/unified_encoder_test.go b/plumbing/format/diff/unified_encoder_test.go index 3eee333ee..c31ba0015 100644 --- a/plumbing/format/diff/unified_encoder_test.go +++ b/plumbing/format/diff/unified_encoder_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/color" - "github.com/go-git/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/color" + "github.com/fuskiid/go-git/v5/plumbing/filemode" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/gitattributes/dir.go b/plumbing/format/gitattributes/dir.go index 123fe2546..a9d0ea017 100644 --- a/plumbing/format/gitattributes/dir.go +++ b/plumbing/format/gitattributes/dir.go @@ -3,9 +3,9 @@ package gitattributes import ( "os" + "github.com/fuskiid/go-git/v5/plumbing/format/config" + gioutil "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5" - "github.com/go-git/go-git/v5/plumbing/format/config" - gioutil "github.com/go-git/go-git/v5/utils/ioutil" ) const ( diff --git a/plumbing/format/gitignore/dir.go b/plumbing/format/gitignore/dir.go index d8fb30c16..6edd9f686 100644 --- a/plumbing/format/gitignore/dir.go +++ b/plumbing/format/gitignore/dir.go @@ -7,10 +7,10 @@ import ( "os" "strings" + "github.com/fuskiid/go-git/v5/internal/path_util" + "github.com/fuskiid/go-git/v5/plumbing/format/config" + gioutil "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5" - "github.com/go-git/go-git/v5/internal/path_util" - "github.com/go-git/go-git/v5/plumbing/format/config" - gioutil "github.com/go-git/go-git/v5/utils/ioutil" ) const ( diff --git a/plumbing/format/idxfile/decoder.go b/plumbing/format/idxfile/decoder.go index 9afdce301..d722dc637 100644 --- a/plumbing/format/idxfile/decoder.go +++ b/plumbing/format/idxfile/decoder.go @@ -6,8 +6,8 @@ import ( "errors" "io" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/utils/binary" ) var ( diff --git a/plumbing/format/idxfile/decoder_test.go b/plumbing/format/idxfile/decoder_test.go index 2c4a801a7..ab32637ae 100644 --- a/plumbing/format/idxfile/decoder_test.go +++ b/plumbing/format/idxfile/decoder_test.go @@ -7,8 +7,8 @@ import ( "io" "testing" - "github.com/go-git/go-git/v5/plumbing" - . "github.com/go-git/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing" + . "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/format/idxfile/encoder.go b/plumbing/format/idxfile/encoder.go index 75147376b..bf7137923 100644 --- a/plumbing/format/idxfile/encoder.go +++ b/plumbing/format/idxfile/encoder.go @@ -3,8 +3,8 @@ package idxfile import ( "io" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/utils/binary" ) // Encoder writes MemoryIndex structs to an output stream. diff --git a/plumbing/format/idxfile/encoder_test.go b/plumbing/format/idxfile/encoder_test.go index b8ece8398..03246bb43 100644 --- a/plumbing/format/idxfile/encoder_test.go +++ b/plumbing/format/idxfile/encoder_test.go @@ -4,7 +4,7 @@ import ( "bytes" "io" - . "github.com/go-git/go-git/v5/plumbing/format/idxfile" + . "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/format/idxfile/idxfile.go b/plumbing/format/idxfile/idxfile.go index 9237a7434..e696fd94b 100644 --- a/plumbing/format/idxfile/idxfile.go +++ b/plumbing/format/idxfile/idxfile.go @@ -7,8 +7,8 @@ import ( encbin "encoding/binary" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/hash" ) const ( diff --git a/plumbing/format/idxfile/idxfile_test.go b/plumbing/format/idxfile/idxfile_test.go index 7a3d6bbb8..37ddc2a53 100644 --- a/plumbing/format/idxfile/idxfile_test.go +++ b/plumbing/format/idxfile/idxfile_test.go @@ -7,8 +7,8 @@ import ( "io" "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/format/idxfile/writer.go b/plumbing/format/idxfile/writer.go index c4c21e167..efcbda29e 100644 --- a/plumbing/format/idxfile/writer.go +++ b/plumbing/format/idxfile/writer.go @@ -7,8 +7,8 @@ import ( "sort" "sync" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/utils/binary" ) // objects implements sort.Interface and uses hash as sorting key. diff --git a/plumbing/format/idxfile/writer_test.go b/plumbing/format/idxfile/writer_test.go index eaa8605f7..853cfee0d 100644 --- a/plumbing/format/idxfile/writer_test.go +++ b/plumbing/format/idxfile/writer_test.go @@ -5,9 +5,9 @@ import ( "encoding/base64" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - "github.com/go-git/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/format/index/decoder.go b/plumbing/format/index/decoder.go index 6778cf74e..141e6543c 100644 --- a/plumbing/format/index/decoder.go +++ b/plumbing/format/index/decoder.go @@ -9,9 +9,9 @@ import ( "strconv" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/utils/binary" ) var ( diff --git a/plumbing/format/index/decoder_test.go b/plumbing/format/index/decoder_test.go index 39ab3361f..9b9a91c5e 100644 --- a/plumbing/format/index/decoder_test.go +++ b/plumbing/format/index/decoder_test.go @@ -3,8 +3,8 @@ package index import ( "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/format/index/encoder.go b/plumbing/format/index/encoder.go index fa2d81445..5ec51d708 100644 --- a/plumbing/format/index/encoder.go +++ b/plumbing/format/index/encoder.go @@ -7,8 +7,8 @@ import ( "sort" "time" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/utils/binary" ) var ( diff --git a/plumbing/format/index/encoder_test.go b/plumbing/format/index/encoder_test.go index 25c24f14f..9571ebc05 100644 --- a/plumbing/format/index/encoder_test.go +++ b/plumbing/format/index/encoder_test.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" "github.com/google/go-cmp/cmp" . "gopkg.in/check.v1" diff --git a/plumbing/format/index/index.go b/plumbing/format/index/index.go index f4c7647d3..3402e599f 100644 --- a/plumbing/format/index/index.go +++ b/plumbing/format/index/index.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" ) var ( @@ -203,8 +203,8 @@ type ResolveUndoEntry struct { // can take advantage of this to quickly locate the index extensions without // having to parse through all of the index entries. // -// Because it must be able to be loaded before the variable length cache -// entries and other index extensions, this extension must be written last. +// Because it must be able to be loaded before the variable length cache +// entries and other index extensions, this extension must be written last. type EndOfIndexEntry struct { // Offset to the end of the index entries Offset uint32 diff --git a/plumbing/format/objfile/common_test.go b/plumbing/format/objfile/common_test.go index de769024f..4e6fbd9af 100644 --- a/plumbing/format/objfile/common_test.go +++ b/plumbing/format/objfile/common_test.go @@ -4,7 +4,7 @@ import ( "encoding/base64" "testing" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/objfile/reader.go b/plumbing/format/objfile/reader.go index d7932f4ea..cfd747eb7 100644 --- a/plumbing/format/objfile/reader.go +++ b/plumbing/format/objfile/reader.go @@ -5,9 +5,9 @@ import ( "io" "strconv" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/utils/sync" ) var ( diff --git a/plumbing/format/objfile/reader_test.go b/plumbing/format/objfile/reader_test.go index 5526f7f4e..8ee1cff80 100644 --- a/plumbing/format/objfile/reader_test.go +++ b/plumbing/format/objfile/reader_test.go @@ -6,7 +6,7 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/objfile/writer.go b/plumbing/format/objfile/writer.go index 0d0f15492..a74dc8f30 100644 --- a/plumbing/format/objfile/writer.go +++ b/plumbing/format/objfile/writer.go @@ -6,8 +6,8 @@ import ( "io" "strconv" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/utils/sync" ) var ( diff --git a/plumbing/format/objfile/writer_test.go b/plumbing/format/objfile/writer_test.go index 35a951034..3c184032a 100644 --- a/plumbing/format/objfile/writer_test.go +++ b/plumbing/format/objfile/writer_test.go @@ -6,7 +6,7 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/packfile/common.go b/plumbing/format/packfile/common.go index 36c5ef5b8..691d24c76 100644 --- a/plumbing/format/packfile/common.go +++ b/plumbing/format/packfile/common.go @@ -3,8 +3,8 @@ package packfile import ( "io" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) var signature = []byte{'P', 'A', 'C', 'K'} diff --git a/plumbing/format/packfile/common_test.go b/plumbing/format/packfile/common_test.go index c6d1038d3..da56a3bb3 100644 --- a/plumbing/format/packfile/common_test.go +++ b/plumbing/format/packfile/common_test.go @@ -4,8 +4,8 @@ import ( "bytes" "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/packfile/delta_selector.go b/plumbing/format/packfile/delta_selector.go index 4b60ff394..ce788bf02 100644 --- a/plumbing/format/packfile/delta_selector.go +++ b/plumbing/format/packfile/delta_selector.go @@ -4,8 +4,8 @@ import ( "sort" "sync" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) const ( diff --git a/plumbing/format/packfile/delta_selector_test.go b/plumbing/format/packfile/delta_selector_test.go index 3d196d35f..1a59a1a91 100644 --- a/plumbing/format/packfile/delta_selector_test.go +++ b/plumbing/format/packfile/delta_selector_test.go @@ -1,8 +1,8 @@ package packfile import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/packfile/delta_test.go b/plumbing/format/packfile/delta_test.go index e8f5ea68f..cdbf1c040 100644 --- a/plumbing/format/packfile/delta_test.go +++ b/plumbing/format/packfile/delta_test.go @@ -5,7 +5,7 @@ import ( "io" "math/rand" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/packfile/diff_delta.go b/plumbing/format/packfile/diff_delta.go index 2c7a33581..982174381 100644 --- a/plumbing/format/packfile/diff_delta.go +++ b/plumbing/format/packfile/diff_delta.go @@ -3,9 +3,9 @@ package packfile import ( "bytes" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/sync" ) // See https://github.com/jelmer/dulwich/blob/master/dulwich/pack.py and diff --git a/plumbing/format/packfile/encoder.go b/plumbing/format/packfile/encoder.go index 804f5a876..2bf76e291 100644 --- a/plumbing/format/packfile/encoder.go +++ b/plumbing/format/packfile/encoder.go @@ -5,11 +5,11 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/binary" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) // Encoder gets the data from the storage and write it into the writer in PACK diff --git a/plumbing/format/packfile/encoder_advanced_test.go b/plumbing/format/packfile/encoder_advanced_test.go index 15c0fba40..f1d475be2 100644 --- a/plumbing/format/packfile/encoder_advanced_test.go +++ b/plumbing/format/packfile/encoder_advanced_test.go @@ -6,12 +6,12 @@ import ( "math/rand" "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - . "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + . "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" "github.com/go-git/go-billy/v5/memfs" fixtures "github.com/go-git/go-git-fixtures/v4" diff --git a/plumbing/format/packfile/encoder_test.go b/plumbing/format/packfile/encoder_test.go index 6719f376a..4bd39f906 100644 --- a/plumbing/format/packfile/encoder_test.go +++ b/plumbing/format/packfile/encoder_test.go @@ -4,10 +4,10 @@ import ( "bytes" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/storage/memory" "github.com/go-git/go-billy/v5/memfs" fixtures "github.com/go-git/go-git-fixtures/v4" diff --git a/plumbing/format/packfile/fsobject.go b/plumbing/format/packfile/fsobject.go index 238339daf..bcb180953 100644 --- a/plumbing/format/packfile/fsobject.go +++ b/plumbing/format/packfile/fsobject.go @@ -3,11 +3,11 @@ package packfile import ( "io" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/utils/ioutil" billy "github.com/go-git/go-billy/v5" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - "github.com/go-git/go-git/v5/utils/ioutil" ) // FSObject is an object from the packfile on the filesystem. diff --git a/plumbing/format/packfile/object_pack.go b/plumbing/format/packfile/object_pack.go index 8ce29ef8b..080af5d8d 100644 --- a/plumbing/format/packfile/object_pack.go +++ b/plumbing/format/packfile/object_pack.go @@ -1,7 +1,7 @@ package packfile import ( - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) // ObjectToPack is a representation of an object that is going to be into a diff --git a/plumbing/format/packfile/object_pack_test.go b/plumbing/format/packfile/object_pack_test.go index dc1a285a7..cf06dfbc5 100644 --- a/plumbing/format/packfile/object_pack_test.go +++ b/plumbing/format/packfile/object_pack_test.go @@ -3,7 +3,7 @@ package packfile import ( "io" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/packfile/packfile.go b/plumbing/format/packfile/packfile.go index 685270225..e456880f9 100644 --- a/plumbing/format/packfile/packfile.go +++ b/plumbing/format/packfile/packfile.go @@ -6,13 +6,13 @@ import ( "io" "os" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/sync" billy "github.com/go-git/go-billy/v5" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/sync" ) var ( diff --git a/plumbing/format/packfile/packfile_test.go b/plumbing/format/packfile/packfile_test.go index 2eb099df6..83bcc00fe 100644 --- a/plumbing/format/packfile/packfile_test.go +++ b/plumbing/format/packfile/packfile_test.go @@ -4,10 +4,10 @@ import ( "io" "math" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - "github.com/go-git/go-git/v5/plumbing/format/packfile" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/packfile/parser.go b/plumbing/format/packfile/parser.go index edbc0e796..9db0003f5 100644 --- a/plumbing/format/packfile/parser.go +++ b/plumbing/format/packfile/parser.go @@ -5,11 +5,11 @@ import ( "errors" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/sync" ) var ( diff --git a/plumbing/format/packfile/parser_test.go b/plumbing/format/packfile/parser_test.go index b8d080f68..942d424e1 100644 --- a/plumbing/format/packfile/parser_test.go +++ b/plumbing/format/packfile/parser_test.go @@ -5,15 +5,15 @@ import ( "os" "testing" + "github.com/fuskiid/go-git/v5" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" "github.com/go-git/go-billy/v5/osfs" "github.com/go-git/go-billy/v5/util" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/packfile/patch_delta.go b/plumbing/format/packfile/patch_delta.go index f00562d63..721746b8e 100644 --- a/plumbing/format/packfile/patch_delta.go +++ b/plumbing/format/packfile/patch_delta.go @@ -7,9 +7,9 @@ import ( "io" "math" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/sync" ) // See https://github.com/git/git/blob/49fa3dc76179e04b0833542fa52d0f287a4955ac/delta.h diff --git a/plumbing/format/packfile/scanner.go b/plumbing/format/packfile/scanner.go index 730343ee3..387c50eae 100644 --- a/plumbing/format/packfile/scanner.go +++ b/plumbing/format/packfile/scanner.go @@ -8,10 +8,10 @@ import ( "hash/crc32" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/utils/binary" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/sync" ) var ( diff --git a/plumbing/format/packfile/scanner_test.go b/plumbing/format/packfile/scanner_test.go index 9dcc3594d..f508aa491 100644 --- a/plumbing/format/packfile/scanner_test.go +++ b/plumbing/format/packfile/scanner_test.go @@ -4,9 +4,9 @@ import ( "bytes" "io" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/hash" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/hash" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/pktline/encoder_test.go b/plumbing/format/pktline/encoder_test.go index a6addd658..281d14177 100644 --- a/plumbing/format/pktline/encoder_test.go +++ b/plumbing/format/pktline/encoder_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" . "gopkg.in/check.v1" ) diff --git a/plumbing/format/pktline/scanner_test.go b/plumbing/format/pktline/scanner_test.go index 60b622407..e64447674 100644 --- a/plumbing/format/pktline/scanner_test.go +++ b/plumbing/format/pktline/scanner_test.go @@ -7,7 +7,7 @@ import ( "io" "strings" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" . "gopkg.in/check.v1" ) diff --git a/plumbing/hash.go b/plumbing/hash.go index 39bb73fbb..072663017 100644 --- a/plumbing/hash.go +++ b/plumbing/hash.go @@ -6,7 +6,7 @@ import ( "sort" "strconv" - "github.com/go-git/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/plumbing/hash" ) // Hash SHA1 hashed content diff --git a/plumbing/object/blob.go b/plumbing/object/blob.go index 8fb7576fa..6c6951e17 100644 --- a/plumbing/object/blob.go +++ b/plumbing/object/blob.go @@ -3,9 +3,9 @@ package object import ( "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) // Blob is used to store arbitrary data - it is generally a file. diff --git a/plumbing/object/blob_test.go b/plumbing/object/blob_test.go index 9481dbe44..7429952f5 100644 --- a/plumbing/object/blob_test.go +++ b/plumbing/object/blob_test.go @@ -4,7 +4,7 @@ import ( "bytes" "io" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/change.go b/plumbing/object/change.go index 3c619df86..e72169307 100644 --- a/plumbing/object/change.go +++ b/plumbing/object/change.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "github.com/go-git/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie" ) // Change values represent a detected change between two git trees. For diff --git a/plumbing/object/change_adaptor.go b/plumbing/object/change_adaptor.go index b96ee84d9..962caadd4 100644 --- a/plumbing/object/change_adaptor.go +++ b/plumbing/object/change_adaptor.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // The following functions transform changes types form the merkletrie diff --git a/plumbing/object/change_adaptor_test.go b/plumbing/object/change_adaptor_test.go index b8dd5d115..03926caac 100644 --- a/plumbing/object/change_adaptor_test.go +++ b/plumbing/object/change_adaptor_test.go @@ -3,13 +3,13 @@ package object import ( "sort" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/object/change_test.go b/plumbing/object/change_test.go index 0e97e4d62..cf5166bed 100644 --- a/plumbing/object/change_test.go +++ b/plumbing/object/change_test.go @@ -4,14 +4,14 @@ import ( "context" "sort" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/format/diff" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/utils/merkletrie" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/format/diff" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/utils/merkletrie" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/commit.go b/plumbing/object/commit.go index 8a0f35c75..195d19621 100644 --- a/plumbing/object/commit.go +++ b/plumbing/object/commit.go @@ -10,10 +10,10 @@ import ( "github.com/ProtonMail/go-crypto/openpgp" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/sync" ) const ( diff --git a/plumbing/object/commit_stats_test.go b/plumbing/object/commit_stats_test.go index 4078ce819..e79bb2ca6 100644 --- a/plumbing/object/commit_stats_test.go +++ b/plumbing/object/commit_stats_test.go @@ -4,10 +4,10 @@ import ( "context" "time" - "github.com/go-git/go-git/v5" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/storage/memory" "github.com/go-git/go-billy/v5/memfs" "github.com/go-git/go-billy/v5/util" diff --git a/plumbing/object/commit_test.go b/plumbing/object/commit_test.go index 4b0f6b424..5dc6718e0 100644 --- a/plumbing/object/commit_test.go +++ b/plumbing/object/commit_test.go @@ -7,11 +7,11 @@ import ( "strings" "time" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/filesystem" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/commit_walker.go b/plumbing/object/commit_walker.go index a96b6a4cf..0060719fe 100644 --- a/plumbing/object/commit_walker.go +++ b/plumbing/object/commit_walker.go @@ -4,9 +4,9 @@ import ( "container/list" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" ) type commitPreIterator struct { diff --git a/plumbing/object/commit_walker_bfs.go b/plumbing/object/commit_walker_bfs.go index 8047fa9bc..cfdd9d0e1 100644 --- a/plumbing/object/commit_walker_bfs.go +++ b/plumbing/object/commit_walker_bfs.go @@ -3,8 +3,8 @@ package object import ( "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) type bfsCommitIterator struct { diff --git a/plumbing/object/commit_walker_bfs_filtered.go b/plumbing/object/commit_walker_bfs_filtered.go index 9d518133e..f219e4493 100644 --- a/plumbing/object/commit_walker_bfs_filtered.go +++ b/plumbing/object/commit_walker_bfs_filtered.go @@ -3,8 +3,8 @@ package object import ( "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // NewFilterCommitIter returns a CommitIter that walks the commit history, diff --git a/plumbing/object/commit_walker_bfs_filtered_test.go b/plumbing/object/commit_walker_bfs_filtered_test.go index 9ea7dc68c..867d72f23 100644 --- a/plumbing/object/commit_walker_bfs_filtered_test.go +++ b/plumbing/object/commit_walker_bfs_filtered_test.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/commit_walker_ctime.go b/plumbing/object/commit_walker_ctime.go index fbddf1d23..1f5d1d9a6 100644 --- a/plumbing/object/commit_walker_ctime.go +++ b/plumbing/object/commit_walker_ctime.go @@ -5,8 +5,8 @@ import ( "github.com/emirpasic/gods/trees/binaryheap" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) type commitIteratorByCTime struct { diff --git a/plumbing/object/commit_walker_limit.go b/plumbing/object/commit_walker_limit.go index ac56a71c4..bf2ddb537 100644 --- a/plumbing/object/commit_walker_limit.go +++ b/plumbing/object/commit_walker_limit.go @@ -4,7 +4,7 @@ import ( "io" "time" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) type commitLimitIter struct { diff --git a/plumbing/object/commit_walker_path.go b/plumbing/object/commit_walker_path.go index aa0ca15fd..acae7efc8 100644 --- a/plumbing/object/commit_walker_path.go +++ b/plumbing/object/commit_walker_path.go @@ -3,8 +3,8 @@ package object import ( "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) type commitPathIter struct { diff --git a/plumbing/object/commit_walker_test.go b/plumbing/object/commit_walker_test.go index c47d68b76..746bed30b 100644 --- a/plumbing/object/commit_walker_test.go +++ b/plumbing/object/commit_walker_test.go @@ -1,7 +1,7 @@ package object import ( - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/commitgraph/commitnode.go b/plumbing/object/commitgraph/commitnode.go index 7abc58b80..3e13f7c9e 100644 --- a/plumbing/object/commitgraph/commitnode.go +++ b/plumbing/object/commitgraph/commitnode.go @@ -4,9 +4,9 @@ import ( "io" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // CommitNode is generic interface encapsulating a lightweight commit object retrieved diff --git a/plumbing/object/commitgraph/commitnode_graph.go b/plumbing/object/commitgraph/commitnode_graph.go index 8e5d4e34a..8e5c22f66 100644 --- a/plumbing/object/commitgraph/commitnode_graph.go +++ b/plumbing/object/commitgraph/commitnode_graph.go @@ -4,10 +4,10 @@ import ( "fmt" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/commitgraph" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/commitgraph" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // graphCommitNode is a reduced representation of Commit as presented in the commit diff --git a/plumbing/object/commitgraph/commitnode_object.go b/plumbing/object/commitgraph/commitnode_object.go index bdf8cb74a..671ba1670 100644 --- a/plumbing/object/commitgraph/commitnode_object.go +++ b/plumbing/object/commitgraph/commitnode_object.go @@ -4,9 +4,9 @@ import ( "math" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // objectCommitNode is a representation of Commit as presented in the GIT object format. diff --git a/plumbing/object/commitgraph/commitnode_test.go b/plumbing/object/commitgraph/commitnode_test.go index 6c9a64333..a23e86286 100644 --- a/plumbing/object/commitgraph/commitnode_test.go +++ b/plumbing/object/commitgraph/commitnode_test.go @@ -4,11 +4,11 @@ import ( "path" "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/format/commitgraph" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/format/commitgraph" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/storage/filesystem" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/object/commitgraph/commitnode_walker_ctime.go b/plumbing/object/commitgraph/commitnode_walker_ctime.go index 281f10bdf..4865d1dd3 100644 --- a/plumbing/object/commitgraph/commitnode_walker_ctime.go +++ b/plumbing/object/commitgraph/commitnode_walker_ctime.go @@ -3,8 +3,8 @@ package commitgraph import ( "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" "github.com/emirpasic/gods/trees/binaryheap" ) diff --git a/plumbing/object/difftree.go b/plumbing/object/difftree.go index 7c2222702..dbf91840d 100644 --- a/plumbing/object/difftree.go +++ b/plumbing/object/difftree.go @@ -4,8 +4,8 @@ import ( "bytes" "context" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // DiffTree compares the content and mode of the blobs found via two diff --git a/plumbing/object/difftree_test.go b/plumbing/object/difftree_test.go index 04416c7ac..35b1a4263 100644 --- a/plumbing/object/difftree_test.go +++ b/plumbing/object/difftree_test.go @@ -3,15 +3,15 @@ package object import ( "sort" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/utils/merkletrie" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" - "github.com/go-git/go-git/v5/utils/merkletrie" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/file.go b/plumbing/object/file.go index 6cc5367d8..0d48f4cd4 100644 --- a/plumbing/object/file.go +++ b/plumbing/object/file.go @@ -5,10 +5,10 @@ import ( "io" "strings" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/binary" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/binary" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) // File represents git file objects. diff --git a/plumbing/object/file_test.go b/plumbing/object/file_test.go index ada6654f4..8cebd0842 100644 --- a/plumbing/object/file_test.go +++ b/plumbing/object/file_test.go @@ -3,11 +3,11 @@ package object import ( "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/object/merge_base.go b/plumbing/object/merge_base.go index b412361d0..6f737805c 100644 --- a/plumbing/object/merge_base.go +++ b/plumbing/object/merge_base.go @@ -4,8 +4,8 @@ import ( "fmt" "sort" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // errIsReachable is thrown when first commit is an ancestor of the second diff --git a/plumbing/object/merge_base_test.go b/plumbing/object/merge_base_test.go index 2a40f6e83..91dd06ca2 100644 --- a/plumbing/object/merge_base_test.go +++ b/plumbing/object/merge_base_test.go @@ -4,9 +4,9 @@ import ( "fmt" "sort" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/storage/filesystem" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/object/object.go b/plumbing/object/object.go index 13b1e91c9..c98cb66d2 100644 --- a/plumbing/object/object.go +++ b/plumbing/object/object.go @@ -10,8 +10,8 @@ import ( "strconv" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // ErrUnsupportedObject trigger when a non-supported object is being decoded. @@ -24,18 +24,18 @@ var ErrUnsupportedObject = errors.New("unsupported object type") // Object is returned when an object can be of any type. It is frequently used // with a type cast to acquire the specific type of object: // -// func process(obj Object) { -// switch o := obj.(type) { -// case *Commit: -// // o is a Commit -// case *Tree: -// // o is a Tree -// case *Blob: -// // o is a Blob -// case *Tag: -// // o is a Tag -// } -// } +// func process(obj Object) { +// switch o := obj.(type) { +// case *Commit: +// // o is a Commit +// case *Tree: +// // o is a Tree +// case *Blob: +// // o is a Blob +// case *Tag: +// // o is a Tag +// } +// } // // This interface is intentionally different from plumbing.EncodedObject, which // is a lower level interface used by storage implementations to read and write diff --git a/plumbing/object/object_test.go b/plumbing/object/object_test.go index c4fdb4c7a..bee08729b 100644 --- a/plumbing/object/object_test.go +++ b/plumbing/object/object_test.go @@ -5,12 +5,12 @@ import ( "testing" "time" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/patch.go b/plumbing/object/patch.go index 06bc35bbc..e60e83bec 100644 --- a/plumbing/object/patch.go +++ b/plumbing/object/patch.go @@ -9,10 +9,10 @@ import ( "math" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - fdiff "github.com/go-git/go-git/v5/plumbing/format/diff" - "github.com/go-git/go-git/v5/utils/diff" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + fdiff "github.com/fuskiid/go-git/v5/plumbing/format/diff" + "github.com/fuskiid/go-git/v5/utils/diff" dmp "github.com/sergi/go-diff/diffmatchpatch" ) @@ -283,8 +283,8 @@ func printStat(fileStats []FileStat) string { for _, fs := range fileStats { addn := float64(fs.Addition) deln := float64(fs.Deletion) - addc := int(math.Floor(addn/scaleFactor)) - delc := int(math.Floor(deln/scaleFactor)) + addc := int(math.Floor(addn / scaleFactor)) + delc := int(math.Floor(deln / scaleFactor)) if addc < 0 { addc = 0 } diff --git a/plumbing/object/patch_test.go b/plumbing/object/patch_test.go index 2cff795ed..856749acc 100644 --- a/plumbing/object/patch_test.go +++ b/plumbing/object/patch_test.go @@ -1,9 +1,9 @@ package object import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/storage/filesystem" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/object/rename.go b/plumbing/object/rename.go index ad2b902c2..85b236489 100644 --- a/plumbing/object/rename.go +++ b/plumbing/object/rename.go @@ -6,10 +6,10 @@ import ( "sort" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/merkletrie" ) // DetectRenames detects the renames in the given changes on two trees with diff --git a/plumbing/object/rename_test.go b/plumbing/object/rename_test.go index 5dd77e865..ade6d9050 100644 --- a/plumbing/object/rename_test.go +++ b/plumbing/object/rename_test.go @@ -4,9 +4,9 @@ import ( "path/filepath" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/tag.go b/plumbing/object/tag.go index cf46c08e1..1f073b131 100644 --- a/plumbing/object/tag.go +++ b/plumbing/object/tag.go @@ -7,10 +7,10 @@ import ( "strings" "github.com/ProtonMail/go-crypto/openpgp" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/sync" ) // Tag represents an annotated tag object. It points to a single git object of diff --git a/plumbing/object/tag_test.go b/plumbing/object/tag_test.go index d374c6c54..94ee019a1 100644 --- a/plumbing/object/tag_test.go +++ b/plumbing/object/tag_test.go @@ -6,11 +6,11 @@ import ( "strings" "time" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/tree.go b/plumbing/object/tree.go index e9f7666b8..f08d0ef73 100644 --- a/plumbing/object/tree.go +++ b/plumbing/object/tree.go @@ -9,11 +9,11 @@ import ( "path/filepath" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/sync" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/sync" ) const ( diff --git a/plumbing/object/tree_test.go b/plumbing/object/tree_test.go index d9dad4775..80b8af6a5 100644 --- a/plumbing/object/tree_test.go +++ b/plumbing/object/tree_test.go @@ -5,12 +5,12 @@ import ( "errors" "io" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" . "gopkg.in/check.v1" ) diff --git a/plumbing/object/treenoder.go b/plumbing/object/treenoder.go index 6e7b334cb..e15304199 100644 --- a/plumbing/object/treenoder.go +++ b/plumbing/object/treenoder.go @@ -3,9 +3,9 @@ package object import ( "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // A treenoder is a helper type that wraps git trees into merkletrie diff --git a/plumbing/protocol/packp/advrefs.go b/plumbing/protocol/packp/advrefs.go index f93ad3047..ce74492b3 100644 --- a/plumbing/protocol/packp/advrefs.go +++ b/plumbing/protocol/packp/advrefs.go @@ -5,10 +5,10 @@ import ( "sort" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/memory" ) // AdvRefs values represent the information transmitted on an diff --git a/plumbing/protocol/packp/advrefs_decode.go b/plumbing/protocol/packp/advrefs_decode.go index f8d26a28e..83bc05b00 100644 --- a/plumbing/protocol/packp/advrefs_decode.go +++ b/plumbing/protocol/packp/advrefs_decode.go @@ -7,8 +7,8 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) // Decode reads the next advertised-refs message form its input and diff --git a/plumbing/protocol/packp/advrefs_decode_test.go b/plumbing/protocol/packp/advrefs_decode_test.go index d1271450e..a64565298 100644 --- a/plumbing/protocol/packp/advrefs_decode_test.go +++ b/plumbing/protocol/packp/advrefs_decode_test.go @@ -5,9 +5,9 @@ import ( "io" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/advrefs_encode.go b/plumbing/protocol/packp/advrefs_encode.go index fb9bd883f..91000d4c1 100644 --- a/plumbing/protocol/packp/advrefs_encode.go +++ b/plumbing/protocol/packp/advrefs_encode.go @@ -6,9 +6,9 @@ import ( "io" "sort" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" ) // Encode writes the AdvRefs encoding to a writer. diff --git a/plumbing/protocol/packp/advrefs_encode_test.go b/plumbing/protocol/packp/advrefs_encode_test.go index a01e83341..02aa3e7eb 100644 --- a/plumbing/protocol/packp/advrefs_encode_test.go +++ b/plumbing/protocol/packp/advrefs_encode_test.go @@ -4,9 +4,9 @@ import ( "bytes" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/advrefs_test.go b/plumbing/protocol/packp/advrefs_test.go index 1b8db981c..3e7f1a483 100644 --- a/plumbing/protocol/packp/advrefs_test.go +++ b/plumbing/protocol/packp/advrefs_test.go @@ -4,9 +4,9 @@ import ( "bytes" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/common_test.go b/plumbing/protocol/packp/common_test.go index 7989388c8..bd1a5f94f 100644 --- a/plumbing/protocol/packp/common_test.go +++ b/plumbing/protocol/packp/common_test.go @@ -5,7 +5,7 @@ import ( "io" "testing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/report_status.go b/plumbing/protocol/packp/report_status.go index e2a0a108b..36498d506 100644 --- a/plumbing/protocol/packp/report_status.go +++ b/plumbing/protocol/packp/report_status.go @@ -6,8 +6,8 @@ import ( "io" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) const ( diff --git a/plumbing/protocol/packp/report_status_test.go b/plumbing/protocol/packp/report_status_test.go index 32b9e5b80..741ca125c 100644 --- a/plumbing/protocol/packp/report_status_test.go +++ b/plumbing/protocol/packp/report_status_test.go @@ -3,8 +3,8 @@ package packp import ( "bytes" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/shallowupd.go b/plumbing/protocol/packp/shallowupd.go index fe4fe6887..d94172b3e 100644 --- a/plumbing/protocol/packp/shallowupd.go +++ b/plumbing/protocol/packp/shallowupd.go @@ -5,8 +5,8 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) const ( diff --git a/plumbing/protocol/packp/shallowupd_test.go b/plumbing/protocol/packp/shallowupd_test.go index a78ba9049..c70ca7f0c 100644 --- a/plumbing/protocol/packp/shallowupd_test.go +++ b/plumbing/protocol/packp/shallowupd_test.go @@ -3,7 +3,7 @@ package packp import ( "bytes" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/sideband/demux.go b/plumbing/protocol/packp/sideband/demux.go index 0116f962e..131f93ebb 100644 --- a/plumbing/protocol/packp/sideband/demux.go +++ b/plumbing/protocol/packp/sideband/demux.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) // ErrMaxPackedExceeded returned by Read, if the maximum packed size is exceeded diff --git a/plumbing/protocol/packp/sideband/demux_test.go b/plumbing/protocol/packp/sideband/demux_test.go index 8f233538c..45b79f00e 100644 --- a/plumbing/protocol/packp/sideband/demux_test.go +++ b/plumbing/protocol/packp/sideband/demux_test.go @@ -6,7 +6,7 @@ import ( "io" "testing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/sideband/muxer.go b/plumbing/protocol/packp/sideband/muxer.go index d51ac8269..c704055b8 100644 --- a/plumbing/protocol/packp/sideband/muxer.go +++ b/plumbing/protocol/packp/sideband/muxer.go @@ -3,7 +3,7 @@ package sideband import ( "io" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) // Muxer multiplex the packfile along with the progress messages and the error diff --git a/plumbing/protocol/packp/srvresp.go b/plumbing/protocol/packp/srvresp.go index 8cd0a7247..abea9a505 100644 --- a/plumbing/protocol/packp/srvresp.go +++ b/plumbing/protocol/packp/srvresp.go @@ -7,8 +7,8 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) const ackLineLen = 44 diff --git a/plumbing/protocol/packp/srvresp_test.go b/plumbing/protocol/packp/srvresp_test.go index aa0af528a..892df2085 100644 --- a/plumbing/protocol/packp/srvresp_test.go +++ b/plumbing/protocol/packp/srvresp_test.go @@ -4,7 +4,7 @@ import ( "bufio" "bytes" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/ulreq.go b/plumbing/protocol/packp/ulreq.go index 344f8c7e3..7537373b5 100644 --- a/plumbing/protocol/packp/ulreq.go +++ b/plumbing/protocol/packp/ulreq.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" ) // UploadRequest values represent the information transmitted on a diff --git a/plumbing/protocol/packp/ulreq_decode.go b/plumbing/protocol/packp/ulreq_decode.go index 895a3bf6d..671115df0 100644 --- a/plumbing/protocol/packp/ulreq_decode.go +++ b/plumbing/protocol/packp/ulreq_decode.go @@ -8,8 +8,8 @@ import ( "strconv" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) // Decode reads the next upload-request form its input and diff --git a/plumbing/protocol/packp/ulreq_decode_test.go b/plumbing/protocol/packp/ulreq_decode_test.go index efcc7b456..82dcc3ee4 100644 --- a/plumbing/protocol/packp/ulreq_decode_test.go +++ b/plumbing/protocol/packp/ulreq_decode_test.go @@ -6,10 +6,10 @@ import ( "sort" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/ulreq_encode.go b/plumbing/protocol/packp/ulreq_encode.go index c451e2316..7d1c7b66d 100644 --- a/plumbing/protocol/packp/ulreq_encode.go +++ b/plumbing/protocol/packp/ulreq_encode.go @@ -6,8 +6,8 @@ import ( "io" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) // Encode writes the UlReq encoding of u to the stream. diff --git a/plumbing/protocol/packp/ulreq_encode_test.go b/plumbing/protocol/packp/ulreq_encode_test.go index ba6df1a6a..cedc07b54 100644 --- a/plumbing/protocol/packp/ulreq_encode_test.go +++ b/plumbing/protocol/packp/ulreq_encode_test.go @@ -5,9 +5,9 @@ import ( "runtime" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/ulreq_test.go b/plumbing/protocol/packp/ulreq_test.go index 2797a4ea5..f244e9fd0 100644 --- a/plumbing/protocol/packp/ulreq_test.go +++ b/plumbing/protocol/packp/ulreq_test.go @@ -3,8 +3,8 @@ package packp import ( "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/updreq.go b/plumbing/protocol/packp/updreq.go index 8f39b39cb..9f924af91 100644 --- a/plumbing/protocol/packp/updreq.go +++ b/plumbing/protocol/packp/updreq.go @@ -4,9 +4,9 @@ import ( "errors" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/sideband" ) var ( @@ -48,6 +48,7 @@ func NewReferenceUpdateRequest() *ReferenceUpdateRequest { // - ofs-delta // - ref-delta // - delete-refs +// // It leaves up to the user to add the following capabilities later: // - atomic // - ofs-delta diff --git a/plumbing/protocol/packp/updreq_decode.go b/plumbing/protocol/packp/updreq_decode.go index 076de545f..05f7eb9e0 100644 --- a/plumbing/protocol/packp/updreq_decode.go +++ b/plumbing/protocol/packp/updreq_decode.go @@ -7,8 +7,8 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" ) var ( diff --git a/plumbing/protocol/packp/updreq_decode_test.go b/plumbing/protocol/packp/updreq_decode_test.go index bdcbdf503..8fef2a4d8 100644 --- a/plumbing/protocol/packp/updreq_decode_test.go +++ b/plumbing/protocol/packp/updreq_decode_test.go @@ -4,8 +4,8 @@ import ( "bytes" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/updreq_encode.go b/plumbing/protocol/packp/updreq_encode.go index 1205cfaf1..4f1e0502b 100644 --- a/plumbing/protocol/packp/updreq_encode.go +++ b/plumbing/protocol/packp/updreq_encode.go @@ -4,9 +4,9 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" ) // Encode writes the ReferenceUpdateRequest encoding to the stream. diff --git a/plumbing/protocol/packp/updreq_encode_test.go b/plumbing/protocol/packp/updreq_encode_test.go index 97868bd64..2bcb64c5a 100644 --- a/plumbing/protocol/packp/updreq_encode_test.go +++ b/plumbing/protocol/packp/updreq_encode_test.go @@ -4,9 +4,9 @@ import ( "bytes" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/updreq_test.go b/plumbing/protocol/packp/updreq_test.go index 80e03fbe7..41f56b12e 100644 --- a/plumbing/protocol/packp/updreq_test.go +++ b/plumbing/protocol/packp/updreq_test.go @@ -1,7 +1,7 @@ package packp import ( - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/uppackreq.go b/plumbing/protocol/packp/uppackreq.go index 48f443856..a2ab6a512 100644 --- a/plumbing/protocol/packp/uppackreq.go +++ b/plumbing/protocol/packp/uppackreq.go @@ -5,9 +5,9 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" ) // UploadPackRequest represents a upload-pack request. diff --git a/plumbing/protocol/packp/uppackreq_test.go b/plumbing/protocol/packp/uppackreq_test.go index ad38565a9..e1fdf3b53 100644 --- a/plumbing/protocol/packp/uppackreq_test.go +++ b/plumbing/protocol/packp/uppackreq_test.go @@ -3,8 +3,8 @@ package packp import ( "bytes" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/protocol/packp/uppackresp.go b/plumbing/protocol/packp/uppackresp.go index a485cb7b2..57e3a844c 100644 --- a/plumbing/protocol/packp/uppackresp.go +++ b/plumbing/protocol/packp/uppackresp.go @@ -6,8 +6,8 @@ import ( "bufio" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) // ErrUploadPackResponseNotDecoded is returned if Read is called without diff --git a/plumbing/protocol/packp/uppackresp_test.go b/plumbing/protocol/packp/uppackresp_test.go index 8fbf92467..fd1b85497 100644 --- a/plumbing/protocol/packp/uppackresp_test.go +++ b/plumbing/protocol/packp/uppackresp_test.go @@ -4,8 +4,8 @@ import ( "bytes" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/revlist/revlist.go b/plumbing/revlist/revlist.go index b9109870f..e497dcbb3 100644 --- a/plumbing/revlist/revlist.go +++ b/plumbing/revlist/revlist.go @@ -6,10 +6,10 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // Objects applies a complementary set. It gets all the hashes from all diff --git a/plumbing/revlist/revlist_test.go b/plumbing/revlist/revlist_test.go index 9f2f93b53..9e5dae292 100644 --- a/plumbing/revlist/revlist_test.go +++ b/plumbing/revlist/revlist_test.go @@ -3,11 +3,11 @@ package revlist import ( "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/storer/index.go b/plumbing/storer/index.go index 33113949b..a903d4f8b 100644 --- a/plumbing/storer/index.go +++ b/plumbing/storer/index.go @@ -1,6 +1,6 @@ package storer -import "github.com/go-git/go-git/v5/plumbing/format/index" +import "github.com/fuskiid/go-git/v5/plumbing/format/index" // IndexStorer generic storage of index.Index type IndexStorer interface { diff --git a/plumbing/storer/object.go b/plumbing/storer/object.go index d8a9c27a6..1aafb585e 100644 --- a/plumbing/storer/object.go +++ b/plumbing/storer/object.go @@ -5,7 +5,7 @@ import ( "io" "time" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) var ( diff --git a/plumbing/storer/object_test.go b/plumbing/storer/object_test.go index 30424ffd3..b4865add0 100644 --- a/plumbing/storer/object_test.go +++ b/plumbing/storer/object_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/storer/reference.go b/plumbing/storer/reference.go index 1d74ef3c6..013e46f9a 100644 --- a/plumbing/storer/reference.go +++ b/plumbing/storer/reference.go @@ -4,7 +4,7 @@ import ( "errors" "io" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) const MaxResolveRecursion = 1024 diff --git a/plumbing/storer/reference_test.go b/plumbing/storer/reference_test.go index 7a4d8b483..6e487b53f 100644 --- a/plumbing/storer/reference_test.go +++ b/plumbing/storer/reference_test.go @@ -4,7 +4,7 @@ import ( "errors" "io" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/plumbing/storer/shallow.go b/plumbing/storer/shallow.go index 39ef5ea5c..aec61cb7b 100644 --- a/plumbing/storer/shallow.go +++ b/plumbing/storer/shallow.go @@ -1,6 +1,6 @@ package storer -import "github.com/go-git/go-git/v5/plumbing" +import "github.com/fuskiid/go-git/v5/plumbing" // ShallowStorer is a storage of references to shallow commits by hash, // meaning that these commits have missing parents because of a shallow fetch. diff --git a/plumbing/transport/client/client.go b/plumbing/transport/client/client.go index 1948c2301..4d0a806d7 100644 --- a/plumbing/transport/client/client.go +++ b/plumbing/transport/client/client.go @@ -5,11 +5,11 @@ package client import ( "fmt" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/file" - "github.com/go-git/go-git/v5/plumbing/transport/git" - "github.com/go-git/go-git/v5/plumbing/transport/http" - "github.com/go-git/go-git/v5/plumbing/transport/ssh" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/file" + "github.com/fuskiid/go-git/v5/plumbing/transport/git" + "github.com/fuskiid/go-git/v5/plumbing/transport/http" + "github.com/fuskiid/go-git/v5/plumbing/transport/ssh" ) // Protocols are the protocols supported by default. diff --git a/plumbing/transport/client/client_test.go b/plumbing/transport/client/client_test.go index 92db525a5..08504f7a6 100644 --- a/plumbing/transport/client/client_test.go +++ b/plumbing/transport/client/client_test.go @@ -4,7 +4,7 @@ import ( "net/http" "testing" - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport" . "gopkg.in/check.v1" ) diff --git a/plumbing/transport/client/example_test.go b/plumbing/transport/client/example_test.go index e1b388764..0c460838e 100644 --- a/plumbing/transport/client/example_test.go +++ b/plumbing/transport/client/example_test.go @@ -4,8 +4,8 @@ import ( "crypto/tls" "net/http" - "github.com/go-git/go-git/v5/plumbing/transport/client" - githttp "github.com/go-git/go-git/v5/plumbing/transport/http" + "github.com/fuskiid/go-git/v5/plumbing/transport/client" + githttp "github.com/fuskiid/go-git/v5/plumbing/transport/http" ) func ExampleInstallProtocol() { diff --git a/plumbing/transport/common.go b/plumbing/transport/common.go index c6a054a65..763d91221 100644 --- a/plumbing/transport/common.go +++ b/plumbing/transport/common.go @@ -22,10 +22,10 @@ import ( "strconv" "strings" - giturl "github.com/go-git/go-git/v5/internal/url" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + giturl "github.com/fuskiid/go-git/v5/internal/url" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" ) var ( diff --git a/plumbing/transport/common_test.go b/plumbing/transport/common_test.go index d9f12ab18..8631751af 100644 --- a/plumbing/transport/common_test.go +++ b/plumbing/transport/common_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" . "gopkg.in/check.v1" ) diff --git a/plumbing/transport/file/client.go b/plumbing/transport/file/client.go index 6f0a38012..945d85af6 100644 --- a/plumbing/transport/file/client.go +++ b/plumbing/transport/file/client.go @@ -9,9 +9,9 @@ import ( "path/filepath" "strings" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/internal/common" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/internal/common" + "github.com/fuskiid/go-git/v5/utils/ioutil" "golang.org/x/sys/execabs" ) diff --git a/plumbing/transport/file/client_test.go b/plumbing/transport/file/client_test.go index daa08713f..32569008d 100644 --- a/plumbing/transport/file/client_test.go +++ b/plumbing/transport/file/client_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport" . "gopkg.in/check.v1" ) diff --git a/plumbing/transport/file/receive_pack_test.go b/plumbing/transport/file/receive_pack_test.go index 686bdcc5d..7e7d562ab 100644 --- a/plumbing/transport/file/receive_pack_test.go +++ b/plumbing/transport/file/receive_pack_test.go @@ -3,7 +3,7 @@ package file import ( "os" - "github.com/go-git/go-git/v5/plumbing/transport/test" + "github.com/fuskiid/go-git/v5/plumbing/transport/test" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/file/server.go b/plumbing/transport/file/server.go index b45d7a71c..2dbe851ba 100644 --- a/plumbing/transport/file/server.go +++ b/plumbing/transport/file/server.go @@ -4,10 +4,10 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/internal/common" - "github.com/go-git/go-git/v5/plumbing/transport/server" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/internal/common" + "github.com/fuskiid/go-git/v5/plumbing/transport/server" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) // ServeUploadPack serves a git-upload-pack request using standard output, input diff --git a/plumbing/transport/file/upload_pack_test.go b/plumbing/transport/file/upload_pack_test.go index fe7c6af8f..5aa8df2fb 100644 --- a/plumbing/transport/file/upload_pack_test.go +++ b/plumbing/transport/file/upload_pack_test.go @@ -3,8 +3,8 @@ package file import ( "os" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/test" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/test" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/git/common.go b/plumbing/transport/git/common.go index 92fc0becc..00203b81a 100644 --- a/plumbing/transport/git/common.go +++ b/plumbing/transport/git/common.go @@ -7,10 +7,10 @@ import ( "net" "strconv" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/internal/common" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/internal/common" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) // DefaultClient is the default git client. diff --git a/plumbing/transport/git/common_test.go b/plumbing/transport/git/common_test.go index 73899198f..9514cbab3 100644 --- a/plumbing/transport/git/common_test.go +++ b/plumbing/transport/git/common_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/git/receive_pack_test.go b/plumbing/transport/git/receive_pack_test.go index 055add83c..f1cbc7d33 100644 --- a/plumbing/transport/git/receive_pack_test.go +++ b/plumbing/transport/git/receive_pack_test.go @@ -1,7 +1,7 @@ package git import ( - "github.com/go-git/go-git/v5/plumbing/transport/test" + "github.com/fuskiid/go-git/v5/plumbing/transport/test" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/git/upload_pack_test.go b/plumbing/transport/git/upload_pack_test.go index 5200953ac..435f009d7 100644 --- a/plumbing/transport/git/upload_pack_test.go +++ b/plumbing/transport/git/upload_pack_test.go @@ -1,7 +1,7 @@ package git import ( - "github.com/go-git/go-git/v5/plumbing/transport/test" + "github.com/fuskiid/go-git/v5/plumbing/transport/test" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/http/common.go b/plumbing/transport/http/common.go index a7cdc1e16..2b42cd537 100644 --- a/plumbing/transport/http/common.go +++ b/plumbing/transport/http/common.go @@ -15,10 +15,10 @@ import ( "strings" "sync" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/golang/groupcache/lru" ) diff --git a/plumbing/transport/http/common_test.go b/plumbing/transport/http/common_test.go index 151722876..f72c1fe52 100644 --- a/plumbing/transport/http/common_test.go +++ b/plumbing/transport/http/common_test.go @@ -14,7 +14,7 @@ import ( "strings" "testing" - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/http/internal/test/proxy_test.go b/plumbing/transport/http/internal/test/proxy_test.go index 6ae2943b0..09e2a10ae 100644 --- a/plumbing/transport/http/internal/test/proxy_test.go +++ b/plumbing/transport/http/internal/test/proxy_test.go @@ -12,8 +12,8 @@ import ( "github.com/elazarl/goproxy" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/http" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/http" . "gopkg.in/check.v1" ) diff --git a/plumbing/transport/http/proxy_test.go b/plumbing/transport/http/proxy_test.go index f3024da92..7df48dd6a 100644 --- a/plumbing/transport/http/proxy_test.go +++ b/plumbing/transport/http/proxy_test.go @@ -10,9 +10,9 @@ import ( "sync/atomic" "github.com/elazarl/goproxy" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/http/internal/test" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/http/internal/test" . "gopkg.in/check.v1" ) diff --git a/plumbing/transport/http/receive_pack.go b/plumbing/transport/http/receive_pack.go index 4387ecffe..4ba1cd6e9 100644 --- a/plumbing/transport/http/receive_pack.go +++ b/plumbing/transport/http/receive_pack.go @@ -7,12 +7,12 @@ import ( "io" "net/http" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/sideband" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) type rpSession struct { diff --git a/plumbing/transport/http/receive_pack_test.go b/plumbing/transport/http/receive_pack_test.go index 7e70986a5..21287066c 100644 --- a/plumbing/transport/http/receive_pack_test.go +++ b/plumbing/transport/http/receive_pack_test.go @@ -1,7 +1,7 @@ package http import ( - "github.com/go-git/go-git/v5/plumbing/transport/test" + "github.com/fuskiid/go-git/v5/plumbing/transport/test" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/http/upload_pack.go b/plumbing/transport/http/upload_pack.go index 4f851459f..92c6044ee 100644 --- a/plumbing/transport/http/upload_pack.go +++ b/plumbing/transport/http/upload_pack.go @@ -7,12 +7,12 @@ import ( "io" "net/http" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/internal/common" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/internal/common" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) type upSession struct { diff --git a/plumbing/transport/http/upload_pack_test.go b/plumbing/transport/http/upload_pack_test.go index abb7adf37..6e7a0d4f2 100644 --- a/plumbing/transport/http/upload_pack_test.go +++ b/plumbing/transport/http/upload_pack_test.go @@ -8,10 +8,10 @@ import ( "os" "path/filepath" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/test" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/test" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/internal/common/common.go b/plumbing/transport/internal/common/common.go index 5fdf4250d..0e903eab7 100644 --- a/plumbing/transport/internal/common/common.go +++ b/plumbing/transport/internal/common/common.go @@ -14,12 +14,12 @@ import ( "strings" "time" - "github.com/go-git/go-git/v5/plumbing/format/pktline" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/format/pktline" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/sideband" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) const ( diff --git a/plumbing/transport/internal/common/server.go b/plumbing/transport/internal/common/server.go index e2480848a..0ebe7c037 100644 --- a/plumbing/transport/internal/common/server.go +++ b/plumbing/transport/internal/common/server.go @@ -5,9 +5,9 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) // ServerCommand is used for a single server command execution. diff --git a/plumbing/transport/server/loader.go b/plumbing/transport/server/loader.go index e7e2b075e..962832de9 100644 --- a/plumbing/transport/server/loader.go +++ b/plumbing/transport/server/loader.go @@ -1,10 +1,10 @@ package server import ( - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/storage/filesystem" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/osfs" diff --git a/plumbing/transport/server/loader_test.go b/plumbing/transport/server/loader_test.go index 88f040348..9b778ec19 100644 --- a/plumbing/transport/server/loader_test.go +++ b/plumbing/transport/server/loader_test.go @@ -4,8 +4,8 @@ import ( "os/exec" "path/filepath" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/plumbing/transport/server/receive_pack_test.go b/plumbing/transport/server/receive_pack_test.go index 6c704bd76..9daa5b9c0 100644 --- a/plumbing/transport/server/receive_pack_test.go +++ b/plumbing/transport/server/receive_pack_test.go @@ -3,9 +3,9 @@ package server_test import ( "context" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/transport" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/server/server.go b/plumbing/transport/server/server.go index 11fa0c801..e71aad4cd 100644 --- a/plumbing/transport/server/server.go +++ b/plumbing/transport/server/server.go @@ -8,14 +8,14 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/revlist" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/revlist" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) var DefaultServer = NewServer(DefaultLoader) diff --git a/plumbing/transport/server/server_test.go b/plumbing/transport/server/server_test.go index 24de099ff..a19bd2701 100644 --- a/plumbing/transport/server/server_test.go +++ b/plumbing/transport/server/server_test.go @@ -3,13 +3,13 @@ package server_test import ( "testing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/client" - "github.com/go-git/go-git/v5/plumbing/transport/server" - "github.com/go-git/go-git/v5/plumbing/transport/test" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/client" + "github.com/fuskiid/go-git/v5/plumbing/transport/server" + "github.com/fuskiid/go-git/v5/plumbing/transport/test" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/server/upload_pack_test.go b/plumbing/transport/server/upload_pack_test.go index cf91ffab5..14e74f7e1 100644 --- a/plumbing/transport/server/upload_pack_test.go +++ b/plumbing/transport/server/upload_pack_test.go @@ -1,7 +1,7 @@ package server_test import ( - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport" . "gopkg.in/check.v1" ) diff --git a/plumbing/transport/ssh/auth_method.go b/plumbing/transport/ssh/auth_method.go index ac4e3583c..48c778be9 100644 --- a/plumbing/transport/ssh/auth_method.go +++ b/plumbing/transport/ssh/auth_method.go @@ -7,7 +7,7 @@ import ( "os/user" "path/filepath" - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport" "github.com/skeema/knownhosts" sshagent "github.com/xanzy/ssh-agent" diff --git a/plumbing/transport/ssh/common.go b/plumbing/transport/ssh/common.go index 15316038b..49c2f3f18 100644 --- a/plumbing/transport/ssh/common.go +++ b/plumbing/transport/ssh/common.go @@ -9,8 +9,8 @@ import ( "strconv" "strings" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/internal/common" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/internal/common" "github.com/skeema/knownhosts" "github.com/kevinburke/ssh_config" diff --git a/plumbing/transport/ssh/common_test.go b/plumbing/transport/ssh/common_test.go index 496e82d17..ae6e71763 100644 --- a/plumbing/transport/ssh/common_test.go +++ b/plumbing/transport/ssh/common_test.go @@ -3,7 +3,7 @@ package ssh import ( "testing" - "github.com/go-git/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport" "github.com/gliderlabs/ssh" "github.com/kevinburke/ssh_config" diff --git a/plumbing/transport/ssh/internal/test/proxy_test.go b/plumbing/transport/ssh/internal/test/proxy_test.go index 8e775f89a..509989fa0 100644 --- a/plumbing/transport/ssh/internal/test/proxy_test.go +++ b/plumbing/transport/ssh/internal/test/proxy_test.go @@ -11,9 +11,9 @@ import ( "testing" "github.com/armon/go-socks5" + "github.com/fuskiid/go-git/v5/plumbing/transport" + ggssh "github.com/fuskiid/go-git/v5/plumbing/transport/ssh" "github.com/gliderlabs/ssh" - "github.com/go-git/go-git/v5/plumbing/transport" - ggssh "github.com/go-git/go-git/v5/plumbing/transport/ssh" fixtures "github.com/go-git/go-git-fixtures/v4" stdssh "golang.org/x/crypto/ssh" diff --git a/plumbing/transport/ssh/proxy_test.go b/plumbing/transport/ssh/proxy_test.go index 2ba98e823..f16ba4e76 100644 --- a/plumbing/transport/ssh/proxy_test.go +++ b/plumbing/transport/ssh/proxy_test.go @@ -9,9 +9,9 @@ import ( "sync/atomic" "github.com/armon/go-socks5" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/ssh/internal/test" "github.com/gliderlabs/ssh" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/ssh/internal/test" fixtures "github.com/go-git/go-git-fixtures/v4" stdssh "golang.org/x/crypto/ssh" diff --git a/plumbing/transport/ssh/upload_pack_test.go b/plumbing/transport/ssh/upload_pack_test.go index 67af566e6..ea2f7b1b7 100644 --- a/plumbing/transport/ssh/upload_pack_test.go +++ b/plumbing/transport/ssh/upload_pack_test.go @@ -12,9 +12,9 @@ import ( "strings" "sync" - "github.com/go-git/go-git/v5/plumbing/transport" - testutils "github.com/go-git/go-git/v5/plumbing/transport/ssh/internal/test" - "github.com/go-git/go-git/v5/plumbing/transport/test" + "github.com/fuskiid/go-git/v5/plumbing/transport" + testutils "github.com/fuskiid/go-git/v5/plumbing/transport/ssh/internal/test" + "github.com/fuskiid/go-git/v5/plumbing/transport/test" "github.com/gliderlabs/ssh" fixtures "github.com/go-git/go-git-fixtures/v4" diff --git a/plumbing/transport/test/receive_pack.go b/plumbing/transport/test/receive_pack.go index 9414fbaff..ba9fee319 100644 --- a/plumbing/transport/test/receive_pack.go +++ b/plumbing/transport/test/receive_pack.go @@ -9,12 +9,12 @@ import ( "os" "path/filepath" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/storage/memory" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/plumbing/transport/test/upload_pack.go b/plumbing/transport/test/upload_pack.go index f7842ebb7..1f962f239 100644 --- a/plumbing/transport/test/upload_pack.go +++ b/plumbing/transport/test/upload_pack.go @@ -8,12 +8,12 @@ import ( "io" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/prune.go b/prune.go index 8e35b994e..a67b7272b 100644 --- a/prune.go +++ b/prune.go @@ -4,8 +4,8 @@ import ( "errors" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) type PruneHandler func(unreferencedObjectHash plumbing.Hash) error diff --git a/prune_test.go b/prune_test.go index 8c726d04c..db27a971b 100644 --- a/prune_test.go +++ b/prune_test.go @@ -3,11 +3,11 @@ package git import ( "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" - "github.com/go-git/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/storage/filesystem" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/remote.go b/remote.go index 679e0af21..00e585011 100644 --- a/remote.go +++ b/remote.go @@ -8,24 +8,24 @@ import ( "strings" "time" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/internal/url" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/sideband" + "github.com/fuskiid/go-git/v5/plumbing/revlist" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/plumbing/transport/client" + "github.com/fuskiid/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5/osfs" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/internal/url" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband" - "github.com/go-git/go-git/v5/plumbing/revlist" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/plumbing/transport/client" - "github.com/go-git/go-git/v5/storage" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" - "github.com/go-git/go-git/v5/utils/ioutil" ) var ( diff --git a/remote_test.go b/remote_test.go index ca5f261c7..8aa561cd5 100644 --- a/remote_test.go +++ b/remote_test.go @@ -11,15 +11,15 @@ import ( "strings" "time" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/protocol/packp" - "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp" + "github.com/fuskiid/go-git/v5/plumbing/protocol/packp/capability" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/repository.go b/repository.go index 3154ac019..005315052 100644 --- a/repository.go +++ b/repository.go @@ -16,23 +16,23 @@ import ( "dario.cat/mergo" "github.com/ProtonMail/go-crypto/openpgp" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/internal/path_util" + "github.com/fuskiid/go-git/v5/internal/revision" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + formatcfg "github.com/fuskiid/go-git/v5/plumbing/format/config" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" + "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/osfs" "github.com/go-git/go-billy/v5/util" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/internal/path_util" - "github.com/go-git/go-git/v5/internal/revision" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - formatcfg "github.com/go-git/go-git/v5/plumbing/format/config" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" - "github.com/go-git/go-git/v5/utils/ioutil" ) // GitDirName this is a special folder where all the git stuff is. diff --git a/repository_test.go b/repository_test.go index 9e000a3da..0545e5d50 100644 --- a/repository_test.go +++ b/repository_test.go @@ -21,15 +21,15 @@ import ( "github.com/ProtonMail/go-crypto/openpgp/armor" openpgperr "github.com/ProtonMail/go-crypto/openpgp/errors" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/plumbing/transport" - "github.com/go-git/go-git/v5/storage" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing/transport" + "github.com/fuskiid/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/memfs" diff --git a/storage/filesystem/config.go b/storage/filesystem/config.go index 78a646465..5719241ad 100644 --- a/storage/filesystem/config.go +++ b/storage/filesystem/config.go @@ -3,9 +3,9 @@ package filesystem import ( "os" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) type ConfigStorage struct { diff --git a/storage/filesystem/config_test.go b/storage/filesystem/config_test.go index ce6a9591b..54807be8b 100644 --- a/storage/filesystem/config_test.go +++ b/storage/filesystem/config_test.go @@ -3,11 +3,11 @@ package filesystem import ( "os" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" "github.com/go-git/go-billy/v5/osfs" "github.com/go-git/go-billy/v5/util" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" . "gopkg.in/check.v1" ) diff --git a/storage/filesystem/deltaobject.go b/storage/filesystem/deltaobject.go index 6ab2cdf38..c807d08c1 100644 --- a/storage/filesystem/deltaobject.go +++ b/storage/filesystem/deltaobject.go @@ -1,7 +1,7 @@ package filesystem import ( - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) type deltaObject struct { diff --git a/storage/filesystem/dotgit/dotgit.go b/storage/filesystem/dotgit/dotgit.go index e02e6ddfd..a39d3a3b2 100644 --- a/storage/filesystem/dotgit/dotgit.go +++ b/storage/filesystem/dotgit/dotgit.go @@ -13,11 +13,11 @@ import ( "strings" "time" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5/osfs" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/hash" - "github.com/go-git/go-git/v5/storage" - "github.com/go-git/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5" ) diff --git a/storage/filesystem/dotgit/dotgit_rewrite_packed_refs.go b/storage/filesystem/dotgit/dotgit_rewrite_packed_refs.go index 43263eadf..ef1a152a6 100644 --- a/storage/filesystem/dotgit/dotgit_rewrite_packed_refs.go +++ b/storage/filesystem/dotgit/dotgit_rewrite_packed_refs.go @@ -5,8 +5,8 @@ import ( "os" "runtime" + "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5" - "github.com/go-git/go-git/v5/utils/ioutil" ) func (d *DotGit) openAndLockPackedRefsMode() int { diff --git a/storage/filesystem/dotgit/dotgit_setref.go b/storage/filesystem/dotgit/dotgit_setref.go index c057f5c48..af86be97b 100644 --- a/storage/filesystem/dotgit/dotgit_setref.go +++ b/storage/filesystem/dotgit/dotgit_setref.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5" ) diff --git a/storage/filesystem/dotgit/dotgit_test.go b/storage/filesystem/dotgit/dotgit_test.go index 1b6c11351..606a02ed3 100644 --- a/storage/filesystem/dotgit/dotgit_test.go +++ b/storage/filesystem/dotgit/dotgit_test.go @@ -10,11 +10,11 @@ import ( "strings" "testing" + "github.com/fuskiid/go-git/v5/plumbing" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/osfs" "github.com/go-git/go-billy/v5/util" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/storage/filesystem/dotgit/reader.go b/storage/filesystem/dotgit/reader.go index 975f92ac6..f98d7e84e 100644 --- a/storage/filesystem/dotgit/reader.go +++ b/storage/filesystem/dotgit/reader.go @@ -5,9 +5,9 @@ import ( "io" "os" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/objfile" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/objfile" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) var _ (plumbing.EncodedObject) = &EncodedObject{} diff --git a/storage/filesystem/dotgit/writers.go b/storage/filesystem/dotgit/writers.go index 849b7a176..a2d0a99ca 100644 --- a/storage/filesystem/dotgit/writers.go +++ b/storage/filesystem/dotgit/writers.go @@ -5,11 +5,11 @@ import ( "io" "sync/atomic" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - "github.com/go-git/go-git/v5/plumbing/format/objfile" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/hash" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing/format/objfile" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/hash" "github.com/go-git/go-billy/v5" ) diff --git a/storage/filesystem/dotgit/writers_test.go b/storage/filesystem/dotgit/writers_test.go index a2517ccb1..51509ebf5 100644 --- a/storage/filesystem/dotgit/writers_test.go +++ b/storage/filesystem/dotgit/writers_test.go @@ -6,11 +6,11 @@ import ( "os" "strconv" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" "github.com/go-git/go-billy/v5/osfs" "github.com/go-git/go-billy/v5/util" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - "github.com/go-git/go-git/v5/plumbing/format/packfile" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/storage/filesystem/index.go b/storage/filesystem/index.go index a19176f83..4d8c19842 100644 --- a/storage/filesystem/index.go +++ b/storage/filesystem/index.go @@ -4,9 +4,9 @@ import ( "bufio" "os" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) type IndexStorage struct { diff --git a/storage/filesystem/module.go b/storage/filesystem/module.go index 20336c118..8555ee7b8 100644 --- a/storage/filesystem/module.go +++ b/storage/filesystem/module.go @@ -1,9 +1,9 @@ package filesystem import ( - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/storage" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" ) type ModuleStorage struct { diff --git a/storage/filesystem/object.go b/storage/filesystem/object.go index 846a7b860..5c38780bf 100644 --- a/storage/filesystem/object.go +++ b/storage/filesystem/object.go @@ -7,14 +7,14 @@ import ( "sync" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/format/idxfile" - "github.com/go-git/go-git/v5/plumbing/format/objfile" - "github.com/go-git/go-git/v5/plumbing/format/packfile" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/format/idxfile" + "github.com/fuskiid/go-git/v5/plumbing/format/objfile" + "github.com/fuskiid/go-git/v5/plumbing/format/packfile" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" + "github.com/fuskiid/go-git/v5/utils/ioutil" "github.com/go-git/go-billy/v5" ) diff --git a/storage/filesystem/object_test.go b/storage/filesystem/object_test.go index 251077a61..7972a4bba 100644 --- a/storage/filesystem/object_test.go +++ b/storage/filesystem/object_test.go @@ -8,11 +8,11 @@ import ( "path/filepath" "testing" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/osfs" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/storage/filesystem/reference.go b/storage/filesystem/reference.go index aabcd7308..58fa12578 100644 --- a/storage/filesystem/reference.go +++ b/storage/filesystem/reference.go @@ -1,9 +1,9 @@ package filesystem import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" ) type ReferenceStorage struct { diff --git a/storage/filesystem/shallow.go b/storage/filesystem/shallow.go index ac48fdfbb..2f8926bd6 100644 --- a/storage/filesystem/shallow.go +++ b/storage/filesystem/shallow.go @@ -4,9 +4,9 @@ import ( "bufio" "fmt" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" - "github.com/go-git/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" + "github.com/fuskiid/go-git/v5/utils/ioutil" ) // ShallowStorage where the shallow commits are stored, an internal to diff --git a/storage/filesystem/storage.go b/storage/filesystem/storage.go index 7e7a2c50f..f4319ea72 100644 --- a/storage/filesystem/storage.go +++ b/storage/filesystem/storage.go @@ -2,8 +2,8 @@ package filesystem import ( - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/storage/filesystem/dotgit" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/storage/filesystem/dotgit" "github.com/go-git/go-billy/v5" ) diff --git a/storage/filesystem/storage_test.go b/storage/filesystem/storage_test.go index 096c37af6..b1628299a 100644 --- a/storage/filesystem/storage_test.go +++ b/storage/filesystem/storage_test.go @@ -3,9 +3,9 @@ package filesystem import ( "testing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/test" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/test" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/memfs" diff --git a/storage/memory/storage.go b/storage/memory/storage.go index ef6a44551..3d541d13e 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -5,11 +5,11 @@ import ( "fmt" "time" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" ) var ErrUnsupportedObjectType = fmt.Errorf("unsupported object type") diff --git a/storage/memory/storage_test.go b/storage/memory/storage_test.go index a634d5d75..9dcea66ba 100644 --- a/storage/memory/storage_test.go +++ b/storage/memory/storage_test.go @@ -3,7 +3,7 @@ package memory import ( "testing" - "github.com/go-git/go-git/v5/storage/test" + "github.com/fuskiid/go-git/v5/storage/test" . "gopkg.in/check.v1" ) diff --git a/storage/storer.go b/storage/storer.go index 4800ac7ba..84361083b 100644 --- a/storage/storer.go +++ b/storage/storer.go @@ -3,14 +3,14 @@ package storage import ( "errors" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) var ErrReferenceHasChanged = errors.New("reference has changed concurrently") // Storer is a generic storage of objects, references and any information -// related to a particular repository. The package github.com/go-git/go-git/v5/storage +// related to a particular repository. The package github.com/fuskiid/go-git/v5/storage // contains two implementation a filesystem base implementation (such as `.git`) // and a memory implementations being ephemeral type Storer interface { diff --git a/storage/test/storage_suite.go b/storage/test/storage_suite.go index ee67fc791..a1e744026 100644 --- a/storage/test/storage_suite.go +++ b/storage/test/storage_suite.go @@ -6,11 +6,11 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/storage/transactional/config.go b/storage/transactional/config.go index f8c3cc291..c100c369c 100644 --- a/storage/transactional/config.go +++ b/storage/transactional/config.go @@ -1,6 +1,6 @@ package transactional -import "github.com/go-git/go-git/v5/config" +import "github.com/fuskiid/go-git/v5/config" // ConfigStorage implements the storer.ConfigStorage for the transactional package. type ConfigStorage struct { diff --git a/storage/transactional/config_test.go b/storage/transactional/config_test.go index 34d7763f6..78cb8832a 100644 --- a/storage/transactional/config_test.go +++ b/storage/transactional/config_test.go @@ -1,8 +1,8 @@ package transactional import ( - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/storage/transactional/index.go b/storage/transactional/index.go index 70641aca0..8b02185f3 100644 --- a/storage/transactional/index.go +++ b/storage/transactional/index.go @@ -1,8 +1,8 @@ package transactional import ( - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // IndexStorage implements the storer.IndexStorage for the transactional package. diff --git a/storage/transactional/index_test.go b/storage/transactional/index_test.go index 0028c0ee2..468ade325 100644 --- a/storage/transactional/index_test.go +++ b/storage/transactional/index_test.go @@ -1,8 +1,8 @@ package transactional import ( - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/storage/transactional/object.go b/storage/transactional/object.go index 5d102b0e1..0383b3263 100644 --- a/storage/transactional/object.go +++ b/storage/transactional/object.go @@ -1,8 +1,8 @@ package transactional import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // ObjectStorage implements the storer.EncodedObjectStorer for the transactional package. diff --git a/storage/transactional/object_test.go b/storage/transactional/object_test.go index df277c4a1..84cbfa481 100644 --- a/storage/transactional/object_test.go +++ b/storage/transactional/object_test.go @@ -1,8 +1,8 @@ package transactional import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/storage/transactional/reference.go b/storage/transactional/reference.go index 1c0930755..a9ce73300 100644 --- a/storage/transactional/reference.go +++ b/storage/transactional/reference.go @@ -1,9 +1,9 @@ package transactional import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" ) // ReferenceStorage implements the storer.ReferenceStorage for the transactional package. diff --git a/storage/transactional/reference_test.go b/storage/transactional/reference_test.go index 05a4fcfc2..29998c2cf 100644 --- a/storage/transactional/reference_test.go +++ b/storage/transactional/reference_test.go @@ -1,8 +1,8 @@ package transactional import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/storage/transactional/shallow.go b/storage/transactional/shallow.go index 20b930ee0..063e2c0f4 100644 --- a/storage/transactional/shallow.go +++ b/storage/transactional/shallow.go @@ -1,8 +1,8 @@ package transactional import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/storer" ) // ShallowStorage implements the storer.ShallowStorer for the transactional package. diff --git a/storage/transactional/shallow_test.go b/storage/transactional/shallow_test.go index 15d423c00..485073b81 100644 --- a/storage/transactional/shallow_test.go +++ b/storage/transactional/shallow_test.go @@ -1,8 +1,8 @@ package transactional import ( - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/storage/memory" . "gopkg.in/check.v1" ) diff --git a/storage/transactional/storage.go b/storage/transactional/storage.go index d4c68cb4b..b84fdb9c6 100644 --- a/storage/transactional/storage.go +++ b/storage/transactional/storage.go @@ -3,8 +3,8 @@ package transactional import ( "io" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" ) // Storage is a transactional implementation of git.Storer, it demux the write diff --git a/storage/transactional/storage_test.go b/storage/transactional/storage_test.go index c620bdc41..a070ce92b 100644 --- a/storage/transactional/storage_test.go +++ b/storage/transactional/storage_test.go @@ -3,14 +3,14 @@ package transactional import ( "testing" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/storage/test" "github.com/go-git/go-billy/v5/memfs" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" - "github.com/go-git/go-git/v5/storage/test" . "gopkg.in/check.v1" ) diff --git a/submodule.go b/submodule.go index 84f020dc7..9fa217c5e 100644 --- a/submodule.go +++ b/submodule.go @@ -7,11 +7,11 @@ import ( "fmt" "path" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/transport" "github.com/go-git/go-billy/v5" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/plumbing/transport" ) var ( diff --git a/submodule_test.go b/submodule_test.go index 0e88391f4..46579d1d3 100644 --- a/submodule_test.go +++ b/submodule_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/storage/memory" "github.com/go-git/go-billy/v5/memfs" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/storage/memory" fixtures "github.com/go-git/go-git-fixtures/v4" . "gopkg.in/check.v1" diff --git a/utils/binary/read.go b/utils/binary/read.go index a14d48db9..efe174587 100644 --- a/utils/binary/read.go +++ b/utils/binary/read.go @@ -7,7 +7,7 @@ import ( "encoding/binary" "io" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" ) // Read reads structured binary data from r into data. Bytes are read and @@ -80,10 +80,9 @@ func ReadUntilFromBufioReader(r *bufio.Reader, delim byte) ([]byte, error) { // // This is how the offset is saved in C: // -// dheader[pos] = ofs & 127; -// while (ofs >>= 7) -// dheader[--pos] = 128 | (--ofs & 127); -// +// dheader[pos] = ofs & 127; +// while (ofs >>= 7) +// dheader[--pos] = 128 | (--ofs & 127); func ReadVariableWidthInt(r io.Reader) (int64, error) { var c byte if err := Read(r, &c); err != nil { diff --git a/utils/binary/read_test.go b/utils/binary/read_test.go index bcd9dee09..82b20e3a3 100644 --- a/utils/binary/read_test.go +++ b/utils/binary/read_test.go @@ -6,7 +6,7 @@ import ( "encoding/binary" "testing" - "github.com/go-git/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing" . "gopkg.in/check.v1" ) diff --git a/utils/diff/diff_ext_test.go b/utils/diff/diff_ext_test.go index 2eea2753a..2e31c3263 100644 --- a/utils/diff/diff_ext_test.go +++ b/utils/diff/diff_ext_test.go @@ -3,7 +3,7 @@ package diff_test import ( "testing" - "github.com/go-git/go-git/v5/utils/diff" + "github.com/fuskiid/go-git/v5/utils/diff" "github.com/sergi/go-diff/diffmatchpatch" . "gopkg.in/check.v1" diff --git a/utils/merkletrie/change.go b/utils/merkletrie/change.go index cc6dc8907..f534b2377 100644 --- a/utils/merkletrie/change.go +++ b/utils/merkletrie/change.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // Action values represent the kind of things a Change can represent: diff --git a/utils/merkletrie/change_test.go b/utils/merkletrie/change_test.go index f73eb861d..13faace37 100644 --- a/utils/merkletrie/change_test.go +++ b/utils/merkletrie/change_test.go @@ -1,9 +1,9 @@ package merkletrie_test import ( - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/internal/fsnoder" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/internal/fsnoder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" . "gopkg.in/check.v1" ) diff --git a/utils/merkletrie/difftree.go b/utils/merkletrie/difftree.go index 9f5145a26..0c8fae1d3 100644 --- a/utils/merkletrie/difftree.go +++ b/utils/merkletrie/difftree.go @@ -252,7 +252,7 @@ import ( "errors" "fmt" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) var ( diff --git a/utils/merkletrie/difftree_test.go b/utils/merkletrie/difftree_test.go index c3937bfa0..83f703594 100644 --- a/utils/merkletrie/difftree_test.go +++ b/utils/merkletrie/difftree_test.go @@ -10,8 +10,8 @@ import ( "testing" "unicode" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/internal/fsnoder" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/internal/fsnoder" . "gopkg.in/check.v1" ) @@ -392,18 +392,20 @@ func (s *DiffTreeSuite) TestDebug(c *C) { }) } -// root -// / | \ -// / | ---- -// f d h -------- -// /\ / \ | -// e a j b/ g -// | / \ | -// l n k icm -// | -// o -// | -// p/ +// root +// / | \ +// / | ---- +// f d h -------- +// /\ / \ | +// +// e a j b/ g +// | / \ | +// l n k icm +// +// | +// o +// | +// p/ func (s *DiffTreeSuite) TestCrazy(c *C) { crazy := "(f(e(l<1>) a(n(o(p())) k<1>)) d<1> h(j(i<1> c<2> m<>) b() g<>))" do(c, []diffTreeTest{ diff --git a/utils/merkletrie/doubleiter.go b/utils/merkletrie/doubleiter.go index 4a4341b38..8c83f6fd5 100644 --- a/utils/merkletrie/doubleiter.go +++ b/utils/merkletrie/doubleiter.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // A doubleIter is a convenience type to keep track of the current diff --git a/utils/merkletrie/filesystem/node.go b/utils/merkletrie/filesystem/node.go index ad169ff4a..1d3373c17 100644 --- a/utils/merkletrie/filesystem/node.go +++ b/utils/merkletrie/filesystem/node.go @@ -5,9 +5,9 @@ import ( "os" "path" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" "github.com/go-git/go-billy/v5" ) diff --git a/utils/merkletrie/filesystem/node_test.go b/utils/merkletrie/filesystem/node_test.go index 159e63dcd..d321fbaf1 100644 --- a/utils/merkletrie/filesystem/node_test.go +++ b/utils/merkletrie/filesystem/node_test.go @@ -7,9 +7,9 @@ import ( "path" "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/memfs" diff --git a/utils/merkletrie/index/node.go b/utils/merkletrie/index/node.go index c1809f7ec..e6fdd79e6 100644 --- a/utils/merkletrie/index/node.go +++ b/utils/merkletrie/index/node.go @@ -4,8 +4,8 @@ import ( "path" "strings" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // The node represents a index.Entry or a directory inferred from the path diff --git a/utils/merkletrie/index/node_test.go b/utils/merkletrie/index/node_test.go index cc5600dcb..e1ea0bb17 100644 --- a/utils/merkletrie/index/node_test.go +++ b/utils/merkletrie/index/node_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" . "gopkg.in/check.v1" ) diff --git a/utils/merkletrie/internal/frame/frame.go b/utils/merkletrie/internal/frame/frame.go index 131878a1c..b0ab827ab 100644 --- a/utils/merkletrie/internal/frame/frame.go +++ b/utils/merkletrie/internal/frame/frame.go @@ -6,7 +6,7 @@ import ( "sort" "strings" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // A Frame is a collection of siblings in a trie, sorted alphabetically @@ -42,8 +42,9 @@ func New(n noder.Noder) (*Frame, error) { // separated by comas. // // Examples: -// [] -// ["a", "b"] +// +// [] +// ["a", "b"] func (f *Frame) String() string { var buf bytes.Buffer _ = buf.WriteByte('[') diff --git a/utils/merkletrie/internal/frame/frame_test.go b/utils/merkletrie/internal/frame/frame_test.go index 0544c8b02..2abc9fdd0 100644 --- a/utils/merkletrie/internal/frame/frame_test.go +++ b/utils/merkletrie/internal/frame/frame_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/go-git/go-git/v5/utils/merkletrie/internal/fsnoder" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/internal/fsnoder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" . "gopkg.in/check.v1" ) diff --git a/utils/merkletrie/internal/fsnoder/dir.go b/utils/merkletrie/internal/fsnoder/dir.go index 3a4c2424e..bb88be960 100644 --- a/utils/merkletrie/internal/fsnoder/dir.go +++ b/utils/merkletrie/internal/fsnoder/dir.go @@ -7,7 +7,7 @@ import ( "sort" "strings" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // Dir values implement directory-like noders. diff --git a/utils/merkletrie/internal/fsnoder/dir_test.go b/utils/merkletrie/internal/fsnoder/dir_test.go index 1a6ea03ca..620c88433 100644 --- a/utils/merkletrie/internal/fsnoder/dir_test.go +++ b/utils/merkletrie/internal/fsnoder/dir_test.go @@ -4,7 +4,7 @@ import ( "reflect" "sort" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" . "gopkg.in/check.v1" ) diff --git a/utils/merkletrie/internal/fsnoder/file.go b/utils/merkletrie/internal/fsnoder/file.go index 0bb908b7a..1f8e31479 100644 --- a/utils/merkletrie/internal/fsnoder/file.go +++ b/utils/merkletrie/internal/fsnoder/file.go @@ -5,7 +5,7 @@ import ( "fmt" "hash/fnv" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // file values represent file-like noders in a merkle trie. diff --git a/utils/merkletrie/internal/fsnoder/file_test.go b/utils/merkletrie/internal/fsnoder/file_test.go index b949b53dd..aee786a1d 100644 --- a/utils/merkletrie/internal/fsnoder/file_test.go +++ b/utils/merkletrie/internal/fsnoder/file_test.go @@ -3,7 +3,7 @@ package fsnoder import ( "testing" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" . "gopkg.in/check.v1" ) diff --git a/utils/merkletrie/internal/fsnoder/new.go b/utils/merkletrie/internal/fsnoder/new.go index b5389c7e7..a625190fd 100644 --- a/utils/merkletrie/internal/fsnoder/new.go +++ b/utils/merkletrie/internal/fsnoder/new.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // New function creates a full merkle trie from the string description of diff --git a/utils/merkletrie/internal/fsnoder/new_test.go b/utils/merkletrie/internal/fsnoder/new_test.go index ad069c7fc..1f2d79060 100644 --- a/utils/merkletrie/internal/fsnoder/new_test.go +++ b/utils/merkletrie/internal/fsnoder/new_test.go @@ -1,7 +1,7 @@ package fsnoder import ( - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" . "gopkg.in/check.v1" ) diff --git a/utils/merkletrie/iter.go b/utils/merkletrie/iter.go index d75afec46..01624791a 100644 --- a/utils/merkletrie/iter.go +++ b/utils/merkletrie/iter.go @@ -4,8 +4,8 @@ import ( "fmt" "io" - "github.com/go-git/go-git/v5/utils/merkletrie/internal/frame" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/internal/frame" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" ) // Iter is an iterator for merkletries (only the trie part of the @@ -17,15 +17,14 @@ import ( // This is the kind of traversal you will expect when listing ordinary // files and directories recursively, for example: // -// Trie Traversal order -// ---- --------------- -// . -// / | \ c -// / | \ d/ -// d c z ===> d/a -// / \ d/b -// b a z -// +// Trie Traversal order +// ---- --------------- +// . +// / | \ c +// / | \ d/ +// d c z ===> d/a +// / \ d/b +// b a z // // This iterator is somewhat especial as you can chose to skip whole // "directories" when iterating: diff --git a/utils/merkletrie/iter_test.go b/utils/merkletrie/iter_test.go index ad6639ba5..02206f986 100644 --- a/utils/merkletrie/iter_test.go +++ b/utils/merkletrie/iter_test.go @@ -5,9 +5,9 @@ import ( "io" "strings" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/internal/fsnoder" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/internal/fsnoder" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" . "gopkg.in/check.v1" ) @@ -30,10 +30,10 @@ var _ = Suite(&IterSuite{}) // // For instance: // -// t := test{ -// operations: "ns", -// expected: "a a/b" -// } +// t := test{ +// operations: "ns", +// expected: "a a/b" +// } // // means: // @@ -99,21 +99,21 @@ func (t test) run(c *C, iter *merkletrie.Iter, // // Example: // -// . -// | -// --------- -// | | | -// a b c -// | -// z +// . +// | +// --------- +// | | | +// a b c +// | +// z // -// var foo testCollection = { -// tree: "(a<> b(z<>) c<>)" -// tests: []test{ -// {operations: "nns", expected: "a b b/z"}, -// {operations: "nnn", expected: "a b c"}, -// }, -// } +// var foo testCollection = { +// tree: "(a<> b(z<>) c<>)" +// tests: []test{ +// {operations: "nns", expected: "a b b/z"}, +// {operations: "nnn", expected: "a b c"}, +// }, +// } // // A new iterator will be build for each test. type testsCollection struct { @@ -190,9 +190,11 @@ func (s *IterSuite) TestOneFile(c *C) { tc.run(c) } -// root -// / \ -// a b +// root +// +// / \ +// +// a b func (s *IterSuite) TestTwoFiles(c *C) { tc := testsCollection{ tree: "(a<> b<>)", @@ -210,11 +212,12 @@ func (s *IterSuite) TestTwoFiles(c *C) { tc.run(c) } -// root -// | -// a -// | -// b +// root +// +// | +// a +// | +// b func (s *IterSuite) TestDirWithFile(c *C) { tc := testsCollection{ tree: "(a(b<>))", @@ -232,9 +235,11 @@ func (s *IterSuite) TestDirWithFile(c *C) { tc.run(c) } -// root -// /|\ -// c a b +// root +// +// /|\ +// +// c a b func (s *IterSuite) TestThreeSiblings(c *C) { tc := testsCollection{ tree: "(c<> a<> b<>)", @@ -260,13 +265,14 @@ func (s *IterSuite) TestThreeSiblings(c *C) { tc.run(c) } -// root -// | -// b -// | -// c -// | -// a +// root +// +// | +// b +// | +// c +// | +// a func (s *IterSuite) TestThreeVertical(c *C) { tc := testsCollection{ tree: "(b(c(a())))", @@ -292,11 +298,13 @@ func (s *IterSuite) TestThreeVertical(c *C) { tc.run(c) } -// root -// / \ -// c a -// | -// b +// root +// +// / \ +// +// c a +// | +// b func (s *IterSuite) TestThreeMix1(c *C) { tc := testsCollection{ tree: "(c(b<>) a<>)", @@ -322,11 +330,14 @@ func (s *IterSuite) TestThreeMix1(c *C) { tc.run(c) } -// root -// / \ -// b a -// | -// c +// root +// +// / \ +// +// b a +// +// | +// c func (s *IterSuite) TestThreeMix2(c *C) { tc := testsCollection{ tree: "(b() a(c<>))", @@ -352,18 +363,20 @@ func (s *IterSuite) TestThreeMix2(c *C) { tc.run(c) } -// root -// / | \ -// / | ---- -// f d h -------- -// /\ / \ | -// e a j b/ g -// | / \ | -// l n k icm -// | -// o -// | -// p/ +// root +// / | \ +// / | ---- +// f d h -------- +// /\ / \ | +// +// e a j b/ g +// | / \ | +// l n k icm +// +// | +// o +// | +// p/ func (s *IterSuite) TestCrazy(c *C) { tc := testsCollection{ tree: "(f(e(l<>) a(n(o(p())) k<>)) d<> h(j(i<> c<> m<>) b() g<>))", @@ -386,17 +399,19 @@ func (s *IterSuite) TestCrazy(c *C) { tc.run(c) } -// . -// | -// a -// | -// b -// / \ -// z h -// / \ -// d e -// | -// f +// . +// | +// a +// | +// b +// / \ +// z h +// / \ +// +// d e +// +// | +// f func (s *IterSuite) TestNewIterFromPath(c *C) { tree, err := fsnoder.New("(a(b(z(d<> e(f<>)) h<>)))") c.Assert(err, IsNil) diff --git a/worktree.go b/worktree.go index 56d1871ee..85cbbdb07 100644 --- a/worktree.go +++ b/worktree.go @@ -9,18 +9,18 @@ import ( "path/filepath" "strings" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/format/gitignore" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/sync" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/util" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/format/gitignore" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/sync" ) var ( @@ -78,7 +78,7 @@ func (w *Worktree) PullContext(ctx context.Context, o *PullOptions) error { Force: o.Force, InsecureSkipTLS: o.InsecureSkipTLS, CABundle: o.CABundle, - ProxyOptions: o.ProxyOptions, + ProxyOptions: o.ProxyOptions, }) updated := true diff --git a/worktree_bsd.go b/worktree_bsd.go index d4682eb83..ac1942daf 100644 --- a/worktree_bsd.go +++ b/worktree_bsd.go @@ -1,3 +1,4 @@ +//go:build darwin || freebsd || netbsd // +build darwin freebsd netbsd package git @@ -6,7 +7,7 @@ import ( "syscall" "time" - "github.com/go-git/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/format/index" ) func init() { diff --git a/worktree_commit.go b/worktree_commit.go index eaa21c3f1..327a2302f 100644 --- a/worktree_commit.go +++ b/worktree_commit.go @@ -7,11 +7,11 @@ import ( "sort" "strings" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/storage" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/storage" "github.com/ProtonMail/go-crypto/openpgp" "github.com/go-git/go-billy/v5" @@ -263,4 +263,4 @@ func (h *buildTreeHelper) copyTreeToStorageRecursive(parent string, t *object.Tr return hash, nil } return h.s.SetEncodedObject(o) -} \ No newline at end of file +} diff --git a/worktree_commit_test.go b/worktree_commit_test.go index 1ac1990f4..f18c54d7f 100644 --- a/worktree_commit_test.go +++ b/worktree_commit_test.go @@ -10,12 +10,12 @@ import ( "strings" "time" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/cache" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/plumbing/storer" - "github.com/go-git/go-git/v5/storage/filesystem" - "github.com/go-git/go-git/v5/storage/memory" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/cache" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/plumbing/storer" + "github.com/fuskiid/go-git/v5/storage/filesystem" + "github.com/fuskiid/go-git/v5/storage/memory" "github.com/ProtonMail/go-crypto/openpgp" "github.com/ProtonMail/go-crypto/openpgp/armor" @@ -131,7 +131,6 @@ func (s *WorktreeSuite) TestCommitAmend(c *C) { _, err = w.Commit("foo\n", &CommitOptions{Author: defaultSignature()}) c.Assert(err, IsNil) - amendedHash, err := w.Commit("bar\n", &CommitOptions{Amend: true}) c.Assert(err, IsNil) diff --git a/worktree_js.go b/worktree_js.go index 7267d055e..d61d17b13 100644 --- a/worktree_js.go +++ b/worktree_js.go @@ -1,3 +1,4 @@ +//go:build js // +build js package git @@ -6,7 +7,7 @@ import ( "syscall" "time" - "github.com/go-git/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/format/index" ) func init() { diff --git a/worktree_linux.go b/worktree_linux.go index 6fcace2f9..5939baa55 100644 --- a/worktree_linux.go +++ b/worktree_linux.go @@ -1,3 +1,4 @@ +//go:build linux // +build linux package git @@ -6,7 +7,7 @@ import ( "syscall" "time" - "github.com/go-git/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/format/index" ) func init() { diff --git a/worktree_plan9.go b/worktree_plan9.go index 8cedf71a3..b078f7827 100644 --- a/worktree_plan9.go +++ b/worktree_plan9.go @@ -4,7 +4,7 @@ import ( "syscall" "time" - "github.com/go-git/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/format/index" ) func init() { diff --git a/worktree_status.go b/worktree_status.go index 61bb6f759..b22dc83cf 100644 --- a/worktree_status.go +++ b/worktree_status.go @@ -9,17 +9,17 @@ import ( "path/filepath" "strings" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/format/gitignore" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/utils/ioutil" + "github.com/fuskiid/go-git/v5/utils/merkletrie" + "github.com/fuskiid/go-git/v5/utils/merkletrie/filesystem" + mindex "github.com/fuskiid/go-git/v5/utils/merkletrie/index" + "github.com/fuskiid/go-git/v5/utils/merkletrie/noder" "github.com/go-git/go-billy/v5/util" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/format/gitignore" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/utils/ioutil" - "github.com/go-git/go-git/v5/utils/merkletrie" - "github.com/go-git/go-git/v5/utils/merkletrie/filesystem" - mindex "github.com/go-git/go-git/v5/utils/merkletrie/index" - "github.com/go-git/go-git/v5/utils/merkletrie/noder" ) var ( diff --git a/worktree_test.go b/worktree_test.go index 24d5bd50f..b62d24141 100644 --- a/worktree_test.go +++ b/worktree_test.go @@ -13,14 +13,14 @@ import ( "testing" "time" + "github.com/fuskiid/go-git/v5/config" + "github.com/fuskiid/go-git/v5/plumbing" + "github.com/fuskiid/go-git/v5/plumbing/filemode" + "github.com/fuskiid/go-git/v5/plumbing/format/gitignore" + "github.com/fuskiid/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/object" + "github.com/fuskiid/go-git/v5/storage/memory" fixtures "github.com/go-git/go-git-fixtures/v4" - "github.com/go-git/go-git/v5/config" - "github.com/go-git/go-git/v5/plumbing" - "github.com/go-git/go-git/v5/plumbing/filemode" - "github.com/go-git/go-git/v5/plumbing/format/gitignore" - "github.com/go-git/go-git/v5/plumbing/format/index" - "github.com/go-git/go-git/v5/plumbing/object" - "github.com/go-git/go-git/v5/storage/memory" "github.com/go-git/go-billy/v5/memfs" "github.com/go-git/go-billy/v5/osfs" diff --git a/worktree_unix_other.go b/worktree_unix_other.go index 5b16e70b7..b236e58e8 100644 --- a/worktree_unix_other.go +++ b/worktree_unix_other.go @@ -1,3 +1,4 @@ +//go:build openbsd || dragonfly || solaris // +build openbsd dragonfly solaris package git @@ -6,7 +7,7 @@ import ( "syscall" "time" - "github.com/go-git/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/format/index" ) func init() { diff --git a/worktree_windows.go b/worktree_windows.go index 1928f9712..f2048eb44 100644 --- a/worktree_windows.go +++ b/worktree_windows.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package git @@ -7,7 +8,7 @@ import ( "syscall" "time" - "github.com/go-git/go-git/v5/plumbing/format/index" + "github.com/fuskiid/go-git/v5/plumbing/format/index" ) func init() {