mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-08 02:36:27 -05:00
Skip pulling tags in shallow clone. Currently seg faults
When fetching, verify tag commits aren't ghost commits
This commit is contained in:
@@ -40,6 +40,8 @@ seed_and_start_serial_remote() {
|
||||
dolt commit -a -m "Added Val: $SEQ"
|
||||
done
|
||||
|
||||
dolt tag nonheadtag HEAD~2
|
||||
|
||||
remotesrv --http-port 1234 --repo-mode &
|
||||
remotesrv_pid=$!
|
||||
|
||||
@@ -117,6 +119,23 @@ seed_and_start_serial_remote() {
|
||||
[[ "$output" =~ "15" ]] || false # 1+2+3+4+5 = 15.
|
||||
}
|
||||
|
||||
@test "shallow-clone: push to a new remote should error" {
|
||||
seed_and_start_serial_remote
|
||||
|
||||
mkdir clones
|
||||
cd clones
|
||||
|
||||
dolt clone --depth 1 http://localhost:50051/test-org/test-repo
|
||||
cd test-repo
|
||||
|
||||
dolt remote add altremote file://../file-remote-alt
|
||||
|
||||
run dolt push altremote main
|
||||
[ "$status" -eq 1 ]
|
||||
# NM4 - give a better error message.
|
||||
[[ "$output" =~ "failed to get all chunks" ]] || false
|
||||
}
|
||||
|
||||
@test "shallow-clone: depth 3 clone of serial history" {
|
||||
seed_and_start_serial_remote
|
||||
|
||||
|
||||
Reference in New Issue
Block a user