Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | plumbing: protocol, fix handling multiple ACK on upload-pack | Máximo Cuadros | 2017-07-08 | 4 | -17/+76 | |
| | | ||||||
* | | Merge pull request #464 from smola/race-463 | Máximo Cuadros | 2017-07-07 | 2 | -21/+31 | |
|\ \ | | | | | | | transport/file: avoid race with Command.Wait, fixes #463 | |||||
| * | | transport/file: avoid race with Command.Wait, fixes #463 | Santiago M. Mola | 2017-07-07 | 1 | -4/+14 | |
| | | | | | | | | | | | | | | | | | | Pipe returned by Command.StderrPipe() has a race with Read and Command.Wait(). We use a io.Pipe() instead and ensure it is closed after Wait(). | |||||
| * | | transport/internal: read only first error line | Santiago M. Mola | 2017-07-07 | 1 | -17/+17 | |
| |/ | | | | | | | | | | | | | We only use the first line of error output. So we use a channel with a single byte buffer and read the first line from stderr. Further output is discarded, as well as any further I/O error, which might be expected when closing the pipe (command finished). | |||||
* / | fix reference shortening | Santiago M. Mola | 2017-07-07 | 2 | -18/+23 | |
|/ | | | | | Implemented according to git shorten_unambiguous_ref. See: https://github.com/git/git/blob/e0aaa1b6532cfce93d87af9bc813fb2e7a7ce9d7/refs.c#L1030 | |||||
* | Merge pull request #423 from smola/ssh-options | Máximo Cuadros | 2017-07-05 | 1 | -3/+36 | |
|\ | | | | | transport/ssh: allow passing SSH options | |||||
| * | transport/ssh: allow global *ssh.ClientConfig override | Santiago M. Mola | 2017-06-23 | 1 | -14/+31 | |
| | | | | | | | | | | A global *ssh.ClientConfig override can be set. It will be use to override values of each SSH session. | |||||
| * | transport/ssh: allow passing SSH options | Santiago M. Mola | 2017-06-23 | 1 | -3/+19 | |
| | | | | | | | | | | Adds the possibility of passing options to SSH transport. Options have the form of functions modifying ssh.ClientConfig. | |||||
* | | fix auth error issue | Antonio Jesus Navarro Perez | 2017-07-04 | 2 | -1/+7 | |
| | | ||||||
* | | fix CGI git server | Antonio Jesus Navarro Perez | 2017-07-04 | 1 | -7/+14 | |
| | | ||||||
* | | transport: http push | Antonio Jesus Navarro Perez | 2017-07-04 | 4 | -77/+253 | |
| | | ||||||
* | | capability: accept unknown capabilities, fixes #450 | Santiago M. Mola | 2017-06-23 | 2 | -10/+6 | |
|/ | | | | | | | | | GitHub has started using a non-standard capability "early-capabilities" with agent=git/github-g3daa19f21. This is breaking all go-git operations on GitHub. This commit removes validation for known capabilities, so that we can use non-standard capabilities safely. | |||||
* | revlist: ignore treeEntries that are submodules. | Antonio Jesus Navarro Perez | 2017-06-19 | 2 | -1/+24 | |
| | | | | - If we don't ignore submodules in trees, when we tried to perform a push, revlist.Objects returned hashes that was from submodules, causing an "object not found" error in packfile generation. | |||||
* | plumbing: gitignore, upgrade to go-billy.v3 and test with gocheck | Máximo Cuadros | 2017-06-19 | 4 | -218/+199 | |
| | ||||||
* | Merge pull request #429 from silvertern/gitignore | Máximo Cuadros | 2017-06-19 | 7 | -0/+676 | |
|\ | | | | | Adds .gitignore support | |||||
| * | Adds gitignore support | Oleg Sklyar | 2017-06-19 | 7 | -0/+676 | |
| | | ||||||
* | | *: upgrade to go-billy.v3, merge | Máximo Cuadros | 2017-06-18 | 7 | -27/+26 | |
| | | ||||||
* | | Merge pull request #421 from smola/iter-naming | Máximo Cuadros | 2017-06-14 | 3 | -7/+7 | |
|\ \ | | | | | | | fix naming of NewCommit{Pre,Post}Iterator | |||||
| * | | fix naming of NewCommit{Pre,Post}Iterator | Santiago M. Mola | 2017-06-13 | 3 | -7/+7 | |
| |/ | | | | | | | | | Use Iter suffix, just as all other iterators in the project. Use Preorder and Postorder to be more clear. | |||||
* | | Merge pull request #422 from smola/gofmt | Máximo Cuadros | 2017-06-13 | 3 | -3/+5 | |
|\ \ | | | | | | | fix gofmt | |||||
| * | | fix gofmt | Santiago M. Mola | 2017-06-13 | 3 | -3/+5 | |
| |/ | ||||||
* | | transport/internal: remove Wait function, use Close directly | Santiago M. Mola | 2017-06-13 | 4 | -32/+19 | |
| | | ||||||
* | | fix ReceivePackSuite.TestSendPackAddDeleteReference | Santiago M. Mola | 2017-06-13 | 1 | -2/+4 | |
| | | ||||||
* | | plumbing/transport: detect "access denied error" | Santiago M. Mola | 2017-06-13 | 1 | -5/+10 | |
| | | | | | | | | | | | | | | "ERR access denied or repository not exported:" is now detected as transport.ErrRepositoryNotFound, since that's what git-daemon returns when --informative-errors is not used. | |||||
* | | transport/git: add git-receive-pack tests | Santiago M. Mola | 2017-06-13 | 1 | -0/+140 | |
| | | ||||||
* | | plumbing/transport: detect git protocol "no such repository" error | Santiago M. Mola | 2017-06-13 | 1 | -0/+5 | |
| | | ||||||
* | | transport/git: ensure port is added to host parameter | Santiago M. Mola | 2017-06-13 | 1 | -1/+6 | |
| | | ||||||
* | | ensure receive-pack session is closed on push. | Santiago M. Mola | 2017-06-13 | 1 | -1/+5 | |
|/ | | | | | | * at low level, ReceivePack must close its stream to the server to signal it has finished. * remote.go: Close() must be called on session. | |||||
* | Merge pull request #409 from smola/dirty-plainopen | Santiago M. Mola | 2017-06-05 | 1 | -0/+8 | |
|\ | | | | | storage/filesystem: call initialization explicitly, fixes #408 | |||||
| * | storage/filesystem: call initialization explicitely, fixes #408 | Santiago M. Mola | 2017-06-01 | 1 | -0/+8 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem.Storage was initializing the gitdir (creating objects and refs) on NewStorage. But this should be done only on init and clone operations, not on open. Now there is a new interface storer.Initializer that storers can implement if they need any initialization step before init or clone. filesystem.Storage is one of such implementations. git.Init and git.Clone now call to the storer Init() method if it does implement it. Otherwise, it just ignores initialization. | |||||
* | | Merge pull request #411 from src-d/fix/delta-copy-operations | Santiago M. Mola | 2017-06-02 | 2 | -1/+35 | |
|\ \ | |/ |/| | packfile: A copy operation cannot be bigger than 64kb | |||||
| * | packfile: A copy operation cannot be bigger than 64kb | Antonio Jesus Navarro Perez | 2017-06-01 | 2 | -1/+35 | |
| | | | | | | | | More info here: https://github.com/git/git/blob/f7466e94375b3be27f229c78873f0acf8301c0a5/diff-delta.c#L428 | |||||
* | | Use xanzy/ssh-agent to create the ssh agent correctly based on os. | Ethan Young | 2017-06-01 | 2 | -14/+15 | |
|/ | ||||||
* | format/packfile: improve binary delta algorithm | Antonio Jesus Navarro Perez | 2017-05-24 | 2 | -441/+94 | |
| | | | | Implemented algorithm described in "File System Support for Delta Compression" paper, from "Joshua P. MacDonald". | |||||
* | format/diff: unified diff encoder and public API | Antonio Jesus Navarro Perez | 2017-05-23 | 10 | -0/+1558 | |
| | | | | | | | | | - Added Patch interface - Added a Unified Diff encoder from Patches - Added Change method to generate Patches - Added Changes method to generate Patches - Added Tree method to generate Patches - Added Commit method to generate Patches | |||||
* | worktree: Remove and Move methods | Máximo Cuadros | 2017-05-21 | 2 | -0/+29 | |
| | ||||||
* | transport/server: use Endpoint string representation as a map key. | Antonio Jesus Navarro Perez | 2017-05-16 | 3 | -4/+20 | |
| | | | | Two endpoints are not equals between them, even if they were generated using the same url or path. | |||||
* | format/packfile: fix bug when the delta depth is equals to 50 | Antonio Jesus Navarro Perez | 2017-05-08 | 2 | -0/+10 | |
| | ||||||
* | worktree: Commit, tests improvements | Máximo Cuadros | 2017-05-04 | 1 | -2/+2 | |
| | ||||||
* | Merge branch 'master' of github.com:src-d/go-git into commit | Máximo Cuadros | 2017-05-04 | 15 | -83/+288 | |
|\ | ||||||
| * | Merge pull request #368 from smola/windows-path | Máximo Cuadros | 2017-05-04 | 7 | -25/+91 | |
| |\ | | | | | | | do not convert local paths to URL | |||||
| | * | do not convert local paths to URL | Santiago M. Mola | 2017-04-28 | 7 | -25/+91 | |
| | | | | | | | | | | | | | | | | | | | | | * Do not convert local paths to URLs, just keep them as they are. * This way we add support for Windows without taking care of Windows path-to-URL conversion. | |||||
| * | | Merge pull request #364 from mcuadros/index-pointer | Máximo Cuadros | 2017-05-04 | 5 | -11/+11 | |
| |\ \ | | |/ | |/| | plumbing: index, Entries converted in a slice of pointers | |||||
| * | | transport: make Endpoint an interface, fixes #362 | Santiago M. Mola | 2017-04-27 | 10 | -60/+199 | |
| | | | | | | | | | | | | | | | * add internal *url.URL implementation for regular URLs. * add internal implementation for SCP-like URLs. | |||||
* | | | plumbing: MemoryObject.Writer tracks his own size | Máximo Cuadros | 2017-05-04 | 5 | -30/+37 | |
| | | | ||||||
* | | | plumbing: object.Tree making public `tree` and `parents` | Máximo Cuadros | 2017-05-01 | 2 | -17/+19 | |
| |/ |/| | ||||||
* | | plumbing: index, Entries converted in a slice of pointers | Máximo Cuadros | 2017-04-26 | 5 | -11/+11 | |
|/ | ||||||
* | Merge pull request #360 from smola/go-vet | Máximo Cuadros | 2017-04-26 | 6 | -15/+15 | |
|\ | | | | | fix go vet issues, add go vet to CI | |||||
| * | object: avoid unreachable code | Santiago M. Mola | 2017-04-26 | 1 | -4/+1 | |
| | | ||||||
| * | format/packfile: rename Seek to SeekFromStart | Santiago M. Mola | 2017-04-26 | 3 | -6/+8 | |
| | | | | | | | | | | | | This has signature and behavior distinct from io.Seeker, go vet complains about this, so we change it to a different name to avoid confusion. |