Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #493 from src-d/windows | Máximo Cuadros | 2017-07-19 | 3 | -3/+11 |
|\ | | | | | *: several windows support fixes | ||||
| * | plumbing: transport server, remove letfover | Máximo Cuadros | 2017-07-19 | 1 | -3/+0 |
| | | |||||
| * | plumbing: format config, escape back slash | Máximo Cuadros | 2017-07-19 | 2 | -4/+2 |
| | | |||||
| * | worktree: commit, use path package instead of filepath | Máximo Cuadros | 2017-07-19 | 2 | -2/+10 |
| | | |||||
| * | plumbing: transport git fix test on windows | Máximo Cuadros | 2017-07-18 | 1 | -1/+3 |
| | | |||||
| * | plumbing: server, fix loader in windows | Máximo Cuadros | 2017-07-18 | 1 | -1/+4 |
| | | |||||
* | | Merge pull request #492 from ajnavarro/fix/panic-in-invalid-delta | Máximo Cuadros | 2017-07-19 | 2 | -16/+85 |
|\ \ | | | | | | | packfile: Avoid panics patching corrupted deltas. | ||||
| * | | packfile: Avoid panics patching corrupted deltas | Antonio Jesus Navarro Perez | 2017-07-19 | 2 | -16/+85 |
| |/ | |||||
* | | repository: allow push from shallow repositories | Máximo Cuadros | 2017-07-19 | 2 | -43/+24 |
| | | |||||
* | | plumbing: object, allow ignore commits in commit walkers | Máximo Cuadros | 2017-07-18 | 2 | -16/+105 |
|/ | |||||
* | Merge pull request #473 from taralx/patch-1 | Máximo Cuadros | 2017-07-13 | 1 | -2/+3 |
|\ | | | | | Use buffered IO for decoding index files. | ||||
| * | Use buffered IO for decoding index files. | JP Sugarbroad | 2017-07-10 | 1 | -2/+3 |
| | | | | | | | | This reduces syscall CPU time from >40% to <10% in my local repository. | ||||
* | | Merge pull request #475 from mcuadros/fix-ack | Máximo Cuadros | 2017-07-12 | 2 | -23/+42 |
|\ \ | | | | | | | plumbing: protocol, fix handling multiple ACK on upload-pack and test… | ||||
| * | | plumbing: protocol, fix handling multiple ACK on upload-pack | Máximo Cuadros | 2017-07-12 | 2 | -23/+42 |
| | | | |||||
* | | | Merge pull request #476 from smola/server-as-client | Máximo Cuadros | 2017-07-11 | 3 | -7/+49 |
|\ \ \ | | | | | | | | | transport/server: add asClient parameter | ||||
| * | | | transport/server: add NewClient | Santiago M. Mola | 2017-07-11 | 3 | -7/+49 |
| |/ / | | | | | | | | | | | | | | | | server.NewClient returns a server that acts as a client. This makes it working seamlessly when registering a server directly with `client.InstallProtocol`. | ||||
* | | | Merge pull request #472 from smola/fix-caps-delete-refs | Máximo Cuadros | 2017-07-11 | 4 | -37/+17 |
|\ \ \ | |/ / |/| | | improve delete support on push | ||||
| * | | improve delete support on push | Santiago M. Mola | 2017-07-11 | 4 | -37/+17 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * server: implement delete-refs and announce it. * remote: check if server announced delete-refs before trying to delete and fail fast if it does not. Note that the client does not need no send 'delete-refs' back to the server to be able to delete references: ``` delete-refs ----------- If the server sends back the 'delete-refs' capability, it means that it is capable of accepting a zero-id value as the target value of a reference update. It is not sent back by the client, it simply informs the client that it can be sent zero-id values to delete references. ``` So our server implementation does not check if the client sent delete-refs back, it just accepts deletes if it receives them. | ||||
* | | Merge pull request #469 from mcuadros/fix-multiple-ack | Máximo Cuadros | 2017-07-11 | 4 | -17/+76 |
|\ \ | |/ |/| | plumbing: protocol, fix handling multiple ACK on upload-pack | ||||
| * | 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 |