-
`find_git_dir()` does not play nicely inside of $GIT_DIR, hence the error message checking.
A possible solution would be to resolve the proper work tree directory. Not sure how to do that with the plu…
-
Concurrent write is happening here: https://github.com/go-git/go-git/blob/master/plumbing/format/idxfile/idxfile.go#L133
```
fatal error: concurrent map writes
goroutine 46 [running]:
runtime.…
-
### 🐛 Describe the bug
Modifications to os.environ affect a process global data structure (the environment struct), and are therefore not thread safe.
Here is a quick and dirty grep for environ mo…
-
When running:
```err = wt.Reset(&git.ResetOptions{ Mode: git.HardReset })```
Untracked files are over written.
when running the git equivalent
```git reset HEAD --hard```
untracked file…
-
change /_examples/log/main.go to
```go
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/plumbing/object"
…
-
Here is the repo I'll be using as an example,
Here's the code that I'm running to test the AddWithOptions(All:true)
```go
package main
import (
"fmt"
"github.com/go-git/go-git/v5"
"g…
-
As per the gitrevisions documentation (https://mirrors.edge.kernel.org/pub/software/scm/git/docs/gitrevisions.html), abbreviated SHA "leading substring that is unique within the repository" should be …
mroth updated
5 years ago
-
Trying to clone a repository in a cgit host over HTTP gives:
```
error: unexpected EOF
```
Host is configured with `enable-http-clone=1` in `cgitrc` to allow cloning over HTTP.
Problem is reprodu…
-
It seems this library always uses the user agent `git/1.0` in HTTP requests, since that is hardcoded here:
https://github.com/go-git/go-git/blob/72ce9961c676b73c9bdd0678b64af7b0a42253f8/plumbing/tran…
-
Getting _Good_ with Git by reading the _internals_: https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain
[![image](https://user-images.githubusercontent.com/194400/31346349-b72ba53a-…