| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The canonical Git client successfully decodes sideband packets up to
65524 bytes in length (4-byte header + 65520-byte payload). The Git
protocol documentation was updated in August 2016 to reduce the maximum
payload size to 65516 bytes, however old implementations still exist in
the wild emitting 65520-byte payloads.
As there is no technical difficulty with accepting (not emitting) larger
payload sizes, this change adjusts the limit check to allow successful
decoding of packets up to 65524 bytes. This change increases
compatibility with the current canonical Git implementation.
Doc changes from August 2016:
https://github.com/git/git/commit/7841c4801ce51f1f62d376d164372e8677c6bc94#diff-52695c8fe91b78b70cea44562ae28297L67
Current packet buffer size is still LARGE_PACKET_MAX (+1 null):
https://github.com/git/git/blob/468165c1d8a442994a825f3684528361727cd8c0/sideband.c#L24
https://github.com/git/git/blob/468165c1d8a442994a825f3684528361727cd8c0/sideband.c#L36
LARGE_PACKET_MAX definition:
https://github.com/git/git/blob/468165c1d8a442994a825f3684528361727cd8c0/pkt-line.h#L100
Signed-off-by: Joseph Vusich <jvusich@amazon.com>
|
|\
| |
| | |
Resolve HEAD if symRefs capability is not supported
|
| |
| |
| |
| | |
Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
|
|\ \
| | |
| | | |
Add commit hash to blame result
|
| |/
| |
| |
| | |
Signed-off-by: Shane Da Silva <shanemichaeldasilva@gmail.com>
|
|\ \
| |/
|/| |
Use CheckClose with named returns and fix tests
|
| |
| |
| |
| | |
Signed-off-by: Javi Fontan <jfontan@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Some tests write to an already existent repository retrieved from
fixtures. The permissions of these files are read only and make
receive pack fail. This was shadowed before as close errors were
lost.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
|
|/
|
|
|
|
|
|
| |
Previously some close errors were losts. This is specially problematic
in go-git as lots of work is done here like generating indexes and
moving packfiles.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
|
|\
| |
| | |
*: skip time consuming tests
|
|/
|
|
| |
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
|
|\
| |
| | |
Fix RefSpec.Src()
|
| |
| |
| |
| |
| |
| | |
Need this to get better code coverage of the bug fix.
Signed-off-by: Alan Cabrera <adc@toolazydogs.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, the Src() function was assuming there are no “+” characters in the refspec src
and erroneously used the strings.Index() function to compute the start index of src in the
refspec. This change now uses the IsForceUpdate() method to decide how to elide the
force update token.
Signed-off-by: Alan Cabrera <adc@toolazydogs.com>
|
|\ \
| | |
| | | |
Worktree.Checkout: handling of symlink on Windows
|
|/ /
| |
| |
| |
| |
| | |
missing
This implementation mimicks the behavior of Git on Windows
Signed-off-by: Felix Kollmann <mail@fkollmann.de>
|
|\ \
| |/
|/| |
repository.Log: add alternatives for commit traversal order
|
| |
| |
| |
| | |
Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com>
|
| |
| |
| |
| |
| |
| | |
Order=LogOrderBSF
Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com>
|
|\ \
| |/
|/| |
storage/filesystem: optimize packfile iterator
|
|/
|
|
|
|
|
|
| |
* do not store extra bool values in the seen map
* open packfile iterators lazily
Signed-off-by: Denys Smirnov <denys@sourced.tech>
|
|\
| |
| | |
plubming: transport, Escape the user and pswd for endpoint. Fixes #723
|
| |
| |
| |
| | |
Signed-off-by: Zachary Romero <zacromero3@gmail.com>
|
|\ \
| | |
| | | |
Unused params, unused code, make Go tip's vet happy
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
vet in 1.10 and earlier was buggy in how its "composite literal uses
unkeyed fields" check had false negatives when it encountered a slice of
pointer types that omitted each element's type.
This has been fixed in tip, so adapt to that fix.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
|
| |/
| |
| |
| |
| |
| | |
It always returns a nil error.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
|
|\ \
| | |
| | | |
new methods Worktree.[AddGlob|RemoveBlob] and recursive Worktree.[Add|Remove]
|
| | |
| | |
| | |
| | | |
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
|
|\ \ \
| | | |
| | | | |
plumbing: ssh, return error when creating public keys from invalid PEM
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
* pem.Decode will return nil in this case, and passing that to x509.IsEncryptedBlock will cause it to panic
Signed-off-by: Mark DeLillo <github.med@delillo.org>
|
|\ \ \
| | | |
| | | | |
blame: Add blame line data
|
|/ / /
| | |
| | |
| | | |
Signed-off-by: Shane Da Silva <shanemichaeldasilva@gmail.com>
|
|/ /
| |
| |
| |
| |
| | |
https://github.com/travis-ci/gimme/issues/132
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
|
|\ \
| | |
| | | |
plumbing: diff, fix crash when a small ending equal-chunk
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
this reuses an existing patch, setting context to 6 triggers the
bug, becuase of a 5-line trailing equals chunk.
Signed-off-by: Mechiel Lukkien <mechiel@ueber.net>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Mechiel Lukkien <mechiel@ueber.net>
|
|\ \ \
| |/ /
|/| | |
transport: http, fix services redirecting only info/refs
|
| |/
| |
| |
| | |
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
|
|\ \
| | |
| | |
| | |
| | | |
jfontan/fix/make-sure-original-data-is-saved-before-creanup
plumbing: format/packfile, fix panic retrieving object hash.
|
| | |
| | |
| | |
| | | |
Signed-off-by: Javi Fontan <jfontan@gmail.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In some cases the original data is not saved before it is cleaned
and forces a panic when it's needed.
The change adds ObjectToPack.CleanOriginal to be used to clean original
object instead of:
object.Original = nil
Now when the Original data is freed because it's no longer in the pack
window a SetOriginal call is done to make sure that Size, Hash and Size
data is not lost.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
|
|\ \
| | |
| | | |
Fix mistyping
|
|/ /
| |
| |
| | |
Signed-off-by: Dmitry Labutin <dmitry@labutin.com>
|
|\ \
| |/
|/| |
storage/filesystem/shallow: fix error checking
|
|/
|
|
| |
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
|
|\
| |
| | |
plumbing: format/packfile, fix crash with cycle deltas
|