Skip to content

Instantly share code, notes, and snippets.

@avar
Created June 10, 2010 18:05
Show Gist options
  • Save avar/433379 to your computer and use it in GitHub Desktop.
Save avar/433379 to your computer and use it in GitHub Desktop.
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/.git/
* expecting success:
: >path1 &&
git add path1 &&
test_tick &&
git commit -a -m repo &&
the_first_commit=$(git show-ref -s --verify refs/heads/master) &&
: >path2 &&
git add path2 &&
test_tick &&
git commit -a -m second &&
the_commit=$(git show-ref -s --verify refs/heads/master)
[master (root-commit) b9c09d6] repo
Author: A U Thor <author@example.com>
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 path1
==1676== Syscall param write(buf) points to uninitialised byte(s)
==1676== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==1676== by 0x8107ED6: write_in_full (wrapper.c:166)
==1676== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==1676== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==1676== by 0x80B0197: update_one (cache-tree.c:350)
==1676== by 0x80B0650: cache_tree_update (cache-tree.c:375)
==1676== by 0x8062722: prepare_to_commit (builtin-commit.c:706)
==1676== by 0x80635FE: cmd_commit (builtin-commit.c:1193)
==1676== by 0x804B5AA: handle_internal_command (git.c:257)
==1676== by 0x804B77D: main (git.c:454)
==1676== Address 0xbef24dc8 is on thread 1's stack
==1676== Uninitialised value was created by a heap allocation
==1676== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1676== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==1676== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==1676== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==1676== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==1676== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==1676== by 0x80B0197: update_one (cache-tree.c:350)
==1676== by 0x80B0650: cache_tree_update (cache-tree.c:375)
==1676== by 0x8062722: prepare_to_commit (builtin-commit.c:706)
==1676== by 0x80635FE: cmd_commit (builtin-commit.c:1193)
==1676== by 0x804B5AA: handle_internal_command (git.c:257)
==1676== by 0x804B77D: main (git.c:454)
==1676==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:update_one
fun:cache_tree_update
fun:prepare_to_commit
fun:cmd_commit
fun:handle_internal_command
fun:main
}
[master 9ad36e1] second
Author: A U Thor <author@example.com>
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 path2
* FAIL 1: setup
: >path1 &&
git add path1 &&
test_tick &&
git commit -a -m repo &&
the_first_commit=$(git show-ref -s --verify refs/heads/master) &&
: >path2 &&
git add path2 &&
test_tick &&
git commit -a -m second &&
the_commit=$(git show-ref -s --verify refs/heads/master)
* expecting success:
mk_empty &&
(
cd testrepo &&
git fetch .. refs/heads/master:refs/remotes/origin/master &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==1711== Invalid read of size 4
==1711== at 0x80E6E00: copy_ref (remote.c:904)
==1711== by 0x80E78DD: get_fetch_map (remote.c:1417)
==1711== by 0x806D61A: fetch_one (builtin-fetch.c:132)
==1711== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1711== by 0x804B5AA: handle_internal_command (git.c:257)
==1711== by 0x804B77D: main (git.c:454)
==1711== Address 0x4342600 is 80 bytes inside a block of size 82 alloc'd
==1711== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1711== by 0x8108080: xcalloc (wrapper.c:82)
==1711== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1711== by 0x80B85A1: get_remote_heads (connect.c:96)
==1711== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1711== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1711== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1711== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1711== by 0x804B5AA: handle_internal_command (git.c:257)
==1711== by 0x804B77D: main (git.c:454)
==1711==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==1711== Invalid read of size 4
==1711== at 0x80E6DEC: copy_ref (remote.c:904)
==1711== by 0x80E6FA6: copy_ref_list (remote.c:919)
==1711== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==1711== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==1711== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==1711== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==1711== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==1711== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1711== by 0x804B5AA: handle_internal_command (git.c:257)
==1711== by 0x804B77D: main (git.c:454)
==1711== Address 0x434257c is 68 bytes inside a block of size 69 alloc'd
==1711== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1711== by 0x8108080: xcalloc (wrapper.c:82)
==1711== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1711== by 0x80B85A1: get_remote_heads (connect.c:96)
==1711== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1711== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1711== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1711== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1711== by 0x804B5AA: handle_internal_command (git.c:257)
==1711== by 0x804B77D: main (git.c:454)
==1711==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==1711== Invalid read of size 4
==1711== at 0x80E6E00: copy_ref (remote.c:904)
==1711== by 0x80E6FA6: copy_ref_list (remote.c:919)
==1711== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==1711== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==1711== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==1711== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==1711== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==1711== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1711== by 0x804B5AA: handle_internal_command (git.c:257)
==1711== by 0x804B77D: main (git.c:454)
==1711== Address 0x4342600 is 80 bytes inside a block of size 82 alloc'd
==1711== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1711== by 0x8108080: xcalloc (wrapper.c:82)
==1711== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1711== by 0x80B85A1: get_remote_heads (connect.c:96)
==1711== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1711== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1711== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1711== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1711== by 0x804B5AA: handle_internal_command (git.c:257)
==1711== by 0x804B77D: main (git.c:454)
==1711==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==1771== Syscall param write(buf) points to uninitialised byte(s)
==1771== at 0x41BBEDB: ??? (syscall-template.S:82)
==1771== by 0x80B99A0: flush (csum-file.c:17)
==1771== by 0x80B9B5C: sha1flush (csum-file.c:39)
==1771== by 0x80B9BA8: sha1close (csum-file.c:48)
==1771== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==1771== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1771== by 0x804B5AA: handle_internal_command (git.c:257)
==1771== by 0x804B77D: main (git.c:454)
==1771== Address 0x43c3a6b is 467 bytes inside a block of size 8,320 alloc'd
==1771== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1771== by 0x81081E6: xmalloc (wrapper.c:20)
==1771== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==1771== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==1771== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1771== by 0x804B5AA: handle_internal_command (git.c:257)
==1771== by 0x804B77D: main (git.c:454)
==1771== Uninitialised value was created by a heap allocation
==1771== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1771== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==1771== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==1771== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==1771== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==1771== by 0x808A738: write_one (builtin-pack-objects.c:318)
==1771== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==1771== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1771== by 0x804B5AA: handle_internal_command (git.c:257)
==1771== by 0x804B77D: main (git.c:454)
==1771==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==1771== Syscall param write(buf) points to uninitialised byte(s)
==1771== at 0x41BBEDB: ??? (syscall-template.S:82)
==1771== by 0x80B99A0: flush (csum-file.c:17)
==1771== by 0x80B9C0D: sha1close (csum-file.c:54)
==1771== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==1771== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1771== by 0x804B5AA: handle_internal_command (git.c:257)
==1771== by 0x804B77D: main (git.c:454)
==1771== Address 0x43c3918 is 128 bytes inside a block of size 8,320 alloc'd
==1771== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1771== by 0x81081E6: xmalloc (wrapper.c:20)
==1771== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==1771== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==1771== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1771== by 0x804B5AA: handle_internal_command (git.c:257)
==1771== by 0x804B77D: main (git.c:454)
==1771== Uninitialised value was created by a heap allocation
==1771== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1771== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==1771== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==1771== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==1771== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==1771== by 0x808A738: write_one (builtin-pack-objects.c:318)
==1771== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==1771== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1771== by 0x804B5AA: handle_internal_command (git.c:257)
==1771== by 0x804B77D: main (git.c:454)
==1771==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
==1804== Syscall param write(buf) points to uninitialised byte(s)
==1804== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==1804== by 0x8107ED6: write_in_full (wrapper.c:166)
==1804== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==1804== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==1804== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==1804== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==1804== by 0x804B5AA: handle_internal_command (git.c:257)
==1804== by 0x804B77D: main (git.c:454)
==1804== Address 0xbec02378 is on thread 1's stack
==1804== Uninitialised value was created by a heap allocation
==1804== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1804== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==1804== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==1804== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==1804== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==1804== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==1804== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==1804== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==1804== by 0x804B5AA: handle_internal_command (git.c:257)
==1804== by 0x804B77D: main (git.c:454)
==1804==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
fatal: unpack-objects failed
* FAIL 2: fetch without wildcard
mk_empty &&
(
cd testrepo &&
git fetch .. refs/heads/master:refs/remotes/origin/master &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_empty &&
(
cd testrepo &&
git config remote.up.url .. &&
git config remote.up.fetch "refs/heads/*:refs/remotes/origin/*" &&
git fetch up &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==1859== Invalid read of size 4
==1859== at 0x80E6E00: copy_ref (remote.c:904)
==1859== by 0x80E7949: get_fetch_map (remote.c:1355)
==1859== by 0x806D8CA: fetch_one (builtin-fetch.c:148)
==1859== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1859== by 0x804B5AA: handle_internal_command (git.c:257)
==1859== by 0x804B77D: main (git.c:454)
==1859== Address 0x4342850 is 80 bytes inside a block of size 82 alloc'd
==1859== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1859== by 0x8108080: xcalloc (wrapper.c:82)
==1859== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1859== by 0x80B85A1: get_remote_heads (connect.c:96)
==1859== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1859== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1859== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1859== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1859== by 0x804B5AA: handle_internal_command (git.c:257)
==1859== by 0x804B77D: main (git.c:454)
==1859==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==1859== Invalid read of size 4
==1859== at 0x80E6DEC: copy_ref (remote.c:904)
==1859== by 0x80E6FA6: copy_ref_list (remote.c:919)
==1859== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==1859== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==1859== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==1859== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==1859== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==1859== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1859== by 0x804B5AA: handle_internal_command (git.c:257)
==1859== by 0x804B77D: main (git.c:454)
==1859== Address 0x43427cc is 68 bytes inside a block of size 69 alloc'd
==1859== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1859== by 0x8108080: xcalloc (wrapper.c:82)
==1859== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1859== by 0x80B85A1: get_remote_heads (connect.c:96)
==1859== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1859== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1859== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1859== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1859== by 0x804B5AA: handle_internal_command (git.c:257)
==1859== by 0x804B77D: main (git.c:454)
==1859==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==1859== Invalid read of size 4
==1859== at 0x80E6E00: copy_ref (remote.c:904)
==1859== by 0x80E6FA6: copy_ref_list (remote.c:919)
==1859== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==1859== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==1859== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==1859== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==1859== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==1859== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1859== by 0x804B5AA: handle_internal_command (git.c:257)
==1859== by 0x804B77D: main (git.c:454)
==1859== Address 0x4342850 is 80 bytes inside a block of size 82 alloc'd
==1859== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1859== by 0x8108080: xcalloc (wrapper.c:82)
==1859== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1859== by 0x80B85A1: get_remote_heads (connect.c:96)
==1859== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1859== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1859== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1859== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1859== by 0x804B5AA: handle_internal_command (git.c:257)
==1859== by 0x804B77D: main (git.c:454)
==1859==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==1899== Syscall param write(buf) points to uninitialised byte(s)
==1899== at 0x41BBEDB: ??? (syscall-template.S:82)
==1899== by 0x80B99A0: flush (csum-file.c:17)
==1899== by 0x80B9B5C: sha1flush (csum-file.c:39)
==1899== by 0x80B9BA8: sha1close (csum-file.c:48)
==1899== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==1899== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1899== by 0x804B5AA: handle_internal_command (git.c:257)
==1899== by 0x804B77D: main (git.c:454)
==1899== Address 0x43c3a6b is 467 bytes inside a block of size 8,320 alloc'd
==1899== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1899== by 0x81081E6: xmalloc (wrapper.c:20)
==1899== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==1899== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==1899== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1899== by 0x804B5AA: handle_internal_command (git.c:257)
==1899== by 0x804B77D: main (git.c:454)
==1899== Uninitialised value was created by a heap allocation
==1899== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1899== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==1899== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==1899== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==1899== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==1899== by 0x808A738: write_one (builtin-pack-objects.c:318)
==1899== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==1899== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1899== by 0x804B5AA: handle_internal_command (git.c:257)
==1899== by 0x804B77D: main (git.c:454)
==1899==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==1899== Syscall param write(buf) points to uninitialised byte(s)
==1899== at 0x41BBEDB: ??? (syscall-template.S:82)
==1899== by 0x80B99A0: flush (csum-file.c:17)
==1899== by 0x80B9C0D: sha1close (csum-file.c:54)
==1899== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==1899== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1899== by 0x804B5AA: handle_internal_command (git.c:257)
==1899== by 0x804B77D: main (git.c:454)
==1899== Address 0x43c3918 is 128 bytes inside a block of size 8,320 alloc'd
==1899== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1899== by 0x81081E6: xmalloc (wrapper.c:20)
==1899== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==1899== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==1899== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1899== by 0x804B5AA: handle_internal_command (git.c:257)
==1899== by 0x804B77D: main (git.c:454)
==1899== Uninitialised value was created by a heap allocation
==1899== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1899== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==1899== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==1899== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==1899== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==1899== by 0x808A738: write_one (builtin-pack-objects.c:318)
==1899== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==1899== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==1899== by 0x804B5AA: handle_internal_command (git.c:257)
==1899== by 0x804B77D: main (git.c:454)
==1899==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
==1909== Syscall param write(buf) points to uninitialised byte(s)
==1909== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==1909== by 0x8107ED6: write_in_full (wrapper.c:166)
==1909== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==1909== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==1909== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==1909== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==1909== by 0x804B5AA: handle_internal_command (git.c:257)
==1909== by 0x804B77D: main (git.c:454)
==1909== Address 0xbeb04378 is on thread 1's stack
==1909== Uninitialised value was created by a heap allocation
==1909== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==1909== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==1909== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==1909== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==1909== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==1909== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==1909== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==1909== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==1909== by 0x804B5AA: handle_internal_command (git.c:257)
==1909== by 0x804B77D: main (git.c:454)
==1909==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
fatal: unpack-objects failed
* FAIL 3: fetch with wildcard
mk_empty &&
(
cd testrepo &&
git config remote.up.url .. &&
git config remote.up.fetch "refs/heads/*:refs/remotes/origin/*" &&
git fetch up &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_empty &&
(
TRASH=$(pwd)/ &&
cd testrepo &&
git config "url.$TRASH.insteadOf" trash/ &&
git config remote.up.url trash/. &&
git config remote.up.fetch "refs/heads/*:refs/remotes/origin/*" &&
git fetch up &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==1973== Invalid read of size 4
==1973== at 0x80E6E00: copy_ref (remote.c:904)
==1973== by 0x80E7949: get_fetch_map (remote.c:1355)
==1973== by 0x806D8CA: fetch_one (builtin-fetch.c:148)
==1973== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1973== by 0x804B5AA: handle_internal_command (git.c:257)
==1973== by 0x804B77D: main (git.c:454)
==1973== Address 0x4342b50 is 80 bytes inside a block of size 82 alloc'd
==1973== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1973== by 0x8108080: xcalloc (wrapper.c:82)
==1973== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1973== by 0x80B85A1: get_remote_heads (connect.c:96)
==1973== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1973== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1973== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1973== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1973== by 0x804B5AA: handle_internal_command (git.c:257)
==1973== by 0x804B77D: main (git.c:454)
==1973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==1973== Invalid read of size 4
==1973== at 0x80E6DEC: copy_ref (remote.c:904)
==1973== by 0x80E6FA6: copy_ref_list (remote.c:919)
==1973== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==1973== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==1973== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==1973== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==1973== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==1973== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1973== by 0x804B5AA: handle_internal_command (git.c:257)
==1973== by 0x804B77D: main (git.c:454)
==1973== Address 0x4342acc is 68 bytes inside a block of size 69 alloc'd
==1973== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1973== by 0x8108080: xcalloc (wrapper.c:82)
==1973== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1973== by 0x80B85A1: get_remote_heads (connect.c:96)
==1973== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1973== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1973== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1973== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1973== by 0x804B5AA: handle_internal_command (git.c:257)
==1973== by 0x804B77D: main (git.c:454)
==1973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==1973== Invalid read of size 4
==1973== at 0x80E6E00: copy_ref (remote.c:904)
==1973== by 0x80E6FA6: copy_ref_list (remote.c:919)
==1973== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==1973== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==1973== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==1973== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==1973== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==1973== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1973== by 0x804B5AA: handle_internal_command (git.c:257)
==1973== by 0x804B77D: main (git.c:454)
==1973== Address 0x4342b50 is 80 bytes inside a block of size 82 alloc'd
==1973== at 0x402425F: calloc (vg_replace_malloc.c:467)
==1973== by 0x8108080: xcalloc (wrapper.c:82)
==1973== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==1973== by 0x80B85A1: get_remote_heads (connect.c:96)
==1973== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==1973== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==1973== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==1973== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==1973== by 0x804B5AA: handle_internal_command (git.c:257)
==1973== by 0x804B77D: main (git.c:454)
==1973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==2010== Syscall param write(buf) points to uninitialised byte(s)
==2010== at 0x41BBEDB: ??? (syscall-template.S:82)
==2010== by 0x80B99A0: flush (csum-file.c:17)
==2010== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2010== by 0x80B9BA8: sha1close (csum-file.c:48)
==2010== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2010== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2010== by 0x804B5AA: handle_internal_command (git.c:257)
==2010== by 0x804B77D: main (git.c:454)
==2010== Address 0x43c3a6b is 467 bytes inside a block of size 8,320 alloc'd
==2010== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2010== by 0x81081E6: xmalloc (wrapper.c:20)
==2010== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2010== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2010== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2010== by 0x804B5AA: handle_internal_command (git.c:257)
==2010== by 0x804B77D: main (git.c:454)
==2010== Uninitialised value was created by a heap allocation
==2010== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2010== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2010== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2010== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2010== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2010== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2010== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2010== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2010== by 0x804B5AA: handle_internal_command (git.c:257)
==2010== by 0x804B77D: main (git.c:454)
==2010==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2010== Syscall param write(buf) points to uninitialised byte(s)
==2010== at 0x41BBEDB: ??? (syscall-template.S:82)
==2010== by 0x80B99A0: flush (csum-file.c:17)
==2010== by 0x80B9C0D: sha1close (csum-file.c:54)
==2010== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2010== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2010== by 0x804B5AA: handle_internal_command (git.c:257)
==2010== by 0x804B77D: main (git.c:454)
==2010== Address 0x43c3918 is 128 bytes inside a block of size 8,320 alloc'd
==2010== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2010== by 0x81081E6: xmalloc (wrapper.c:20)
==2010== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2010== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2010== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2010== by 0x804B5AA: handle_internal_command (git.c:257)
==2010== by 0x804B77D: main (git.c:454)
==2010== Uninitialised value was created by a heap allocation
==2010== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2010== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2010== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2010== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2010== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2010== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2010== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2010== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2010== by 0x804B5AA: handle_internal_command (git.c:257)
==2010== by 0x804B77D: main (git.c:454)
==2010==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
==2020== Syscall param write(buf) points to uninitialised byte(s)
==2020== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==2020== by 0x8107ED6: write_in_full (wrapper.c:166)
==2020== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==2020== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2020== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2020== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2020== by 0x804B5AA: handle_internal_command (git.c:257)
==2020== by 0x804B77D: main (git.c:454)
==2020== Address 0xbedad378 is on thread 1's stack
==2020== Uninitialised value was created by a heap allocation
==2020== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2020== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2020== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2020== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2020== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==2020== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2020== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2020== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2020== by 0x804B5AA: handle_internal_command (git.c:257)
==2020== by 0x804B77D: main (git.c:454)
==2020==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
fatal: unpack-objects failed
* FAIL 4: fetch with insteadOf
mk_empty &&
(
TRASH=$(pwd)/ &&
cd testrepo &&
git config "url.$TRASH.insteadOf" trash/ &&
git config remote.up.url trash/. &&
git config remote.up.fetch "refs/heads/*:refs/remotes/origin/*" &&
git fetch up &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_empty &&
(
TRASH=$(pwd)/ &&
cd testrepo &&
git config "url.trash/.pushInsteadOf" "$TRASH" &&
git config remote.up.url "$TRASH." &&
git config remote.up.fetch "refs/heads/*:refs/remotes/origin/*" &&
git fetch up &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==2112== Invalid read of size 4
==2112== at 0x80E6E00: copy_ref (remote.c:904)
==2112== by 0x80E7949: get_fetch_map (remote.c:1355)
==2112== by 0x806D8CA: fetch_one (builtin-fetch.c:148)
==2112== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==2112== by 0x804B5AA: handle_internal_command (git.c:257)
==2112== by 0x804B77D: main (git.c:454)
==2112== Address 0x4342be0 is 80 bytes inside a block of size 82 alloc'd
==2112== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2112== by 0x8108080: xcalloc (wrapper.c:82)
==2112== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==2112== by 0x80B85A1: get_remote_heads (connect.c:96)
==2112== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==2112== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==2112== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==2112== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==2112== by 0x804B5AA: handle_internal_command (git.c:257)
==2112== by 0x804B77D: main (git.c:454)
==2112==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==2112== Invalid read of size 4
==2112== at 0x80E6DEC: copy_ref (remote.c:904)
==2112== by 0x80E6FA6: copy_ref_list (remote.c:919)
==2112== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==2112== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==2112== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==2112== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==2112== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==2112== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==2112== by 0x804B5AA: handle_internal_command (git.c:257)
==2112== by 0x804B77D: main (git.c:454)
==2112== Address 0x4342b5c is 68 bytes inside a block of size 69 alloc'd
==2112== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2112== by 0x8108080: xcalloc (wrapper.c:82)
==2112== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==2112== by 0x80B85A1: get_remote_heads (connect.c:96)
==2112== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==2112== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==2112== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==2112== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==2112== by 0x804B5AA: handle_internal_command (git.c:257)
==2112== by 0x804B77D: main (git.c:454)
==2112==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==2112== Invalid read of size 4
==2112== at 0x80E6E00: copy_ref (remote.c:904)
==2112== by 0x80E6FA6: copy_ref_list (remote.c:919)
==2112== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==2112== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==2112== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==2112== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==2112== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==2112== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==2112== by 0x804B5AA: handle_internal_command (git.c:257)
==2112== by 0x804B77D: main (git.c:454)
==2112== Address 0x4342be0 is 80 bytes inside a block of size 82 alloc'd
==2112== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2112== by 0x8108080: xcalloc (wrapper.c:82)
==2112== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==2112== by 0x80B85A1: get_remote_heads (connect.c:96)
==2112== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==2112== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==2112== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==2112== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==2112== by 0x804B5AA: handle_internal_command (git.c:257)
==2112== by 0x804B77D: main (git.c:454)
==2112==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==2144== Syscall param write(buf) points to uninitialised byte(s)
==2144== at 0x41BBEDB: ??? (syscall-template.S:82)
==2144== by 0x80B99A0: flush (csum-file.c:17)
==2144== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2144== by 0x80B9BA8: sha1close (csum-file.c:48)
==2144== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2144== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2144== by 0x804B5AA: handle_internal_command (git.c:257)
==2144== by 0x804B77D: main (git.c:454)
==2144== Address 0x43c3a6b is 467 bytes inside a block of size 8,320 alloc'd
==2144== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2144== by 0x81081E6: xmalloc (wrapper.c:20)
==2144== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2144== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2144== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2144== by 0x804B5AA: handle_internal_command (git.c:257)
==2144== by 0x804B77D: main (git.c:454)
==2144== Uninitialised value was created by a heap allocation
==2144== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2144== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2144== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2144== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2144== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2144== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2144== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2144== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2144== by 0x804B5AA: handle_internal_command (git.c:257)
==2144== by 0x804B77D: main (git.c:454)
==2144==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2144== Syscall param write(buf) points to uninitialised byte(s)
==2144== at 0x41BBEDB: ??? (syscall-template.S:82)
==2144== by 0x80B99A0: flush (csum-file.c:17)
==2144== by 0x80B9C0D: sha1close (csum-file.c:54)
==2144== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2144== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2144== by 0x804B5AA: handle_internal_command (git.c:257)
==2144== by 0x804B77D: main (git.c:454)
==2144== Address 0x43c3918 is 128 bytes inside a block of size 8,320 alloc'd
==2144== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2144== by 0x81081E6: xmalloc (wrapper.c:20)
==2144== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2144== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2144== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2144== by 0x804B5AA: handle_internal_command (git.c:257)
==2144== by 0x804B77D: main (git.c:454)
==2144== Uninitialised value was created by a heap allocation
==2144== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2144== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2144== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2144== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2144== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2144== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2144== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2144== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2144== by 0x804B5AA: handle_internal_command (git.c:257)
==2144== by 0x804B77D: main (git.c:454)
==2144==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
==2156== Syscall param write(buf) points to uninitialised byte(s)
==2156== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==2156== by 0x8107ED6: write_in_full (wrapper.c:166)
==2156== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==2156== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2156== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2156== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2156== by 0x804B5AA: handle_internal_command (git.c:257)
==2156== by 0x804B77D: main (git.c:454)
==2156== Address 0xbe987378 is on thread 1's stack
==2156== Uninitialised value was created by a heap allocation
==2156== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2156== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2156== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2156== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2156== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==2156== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2156== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2156== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2156== by 0x804B5AA: handle_internal_command (git.c:257)
==2156== by 0x804B77D: main (git.c:454)
==2156==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
fatal: unpack-objects failed
* FAIL 5: fetch with pushInsteadOf (should not rewrite)
mk_empty &&
(
TRASH=$(pwd)/ &&
cd testrepo &&
git config "url.trash/.pushInsteadOf" "$TRASH" &&
git config remote.up.url "$TRASH." &&
git config remote.up.fetch "refs/heads/*:refs/remotes/origin/*" &&
git fetch up &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_empty &&
git push testrepo refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==2190== Invalid read of size 4
==2190== at 0x80E6E00: copy_ref (remote.c:904)
==2190== by 0x80EA352: match_refs (remote.c:1124)
==2190== by 0x80FE553: transport_push (transport.c:1046)
==2190== by 0x808F623: push_with_options (builtin-push.c:116)
==2190== by 0x808FD69: cmd_push (builtin-push.c:187)
==2190== by 0x804B5AA: handle_internal_command (git.c:257)
==2190== by 0x804B77D: main (git.c:454)
==2190== Address 0x434a3c0 is 80 bytes inside a block of size 82 alloc'd
==2190== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2190== by 0x8108080: xcalloc (wrapper.c:82)
==2190== by 0x80E9D14: one_local_ref (remote.c:1626)
==2190== by 0x80E3834: do_one_ref (refs.c:555)
==2190== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==2190== by 0x80E6CF5: get_local_heads (remote.c:1637)
==2190== by 0x80FE51F: transport_push (transport.c:1033)
==2190== by 0x808F623: push_with_options (builtin-push.c:116)
==2190== by 0x808FD69: cmd_push (builtin-push.c:187)
==2190== by 0x804B5AA: handle_internal_command (git.c:257)
==2190== by 0x804B77D: main (git.c:454)
==2190==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==2212== Syscall param write(buf) points to uninitialised byte(s)
==2212== at 0x41BBEDB: ??? (syscall-template.S:82)
==2212== by 0x80B99A0: flush (csum-file.c:17)
==2212== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2212== by 0x80B9BA8: sha1close (csum-file.c:48)
==2212== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2212== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2212== by 0x804B5AA: handle_internal_command (git.c:257)
==2212== by 0x804B77D: main (git.c:454)
==2212== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==2212== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2212== by 0x81081E6: xmalloc (wrapper.c:20)
==2212== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2212== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2212== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2212== by 0x804B5AA: handle_internal_command (git.c:257)
==2212== by 0x804B77D: main (git.c:454)
==2212== Uninitialised value was created by a heap allocation
==2212== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2212== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2212== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2212== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2212== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2212== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2212== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2212== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2212== by 0x804B5AA: handle_internal_command (git.c:257)
==2212== by 0x804B77D: main (git.c:454)
==2212==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2212== Syscall param write(buf) points to uninitialised byte(s)
==2212== at 0x41BBEDB: ??? (syscall-template.S:82)
==2212== by 0x80B99A0: flush (csum-file.c:17)
==2212== by 0x80B9C0D: sha1close (csum-file.c:54)
==2212== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2212== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2212== by 0x804B5AA: handle_internal_command (git.c:257)
==2212== by 0x804B77D: main (git.c:454)
==2212== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==2212== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2212== by 0x81081E6: xmalloc (wrapper.c:20)
==2212== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2212== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2212== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2212== by 0x804B5AA: handle_internal_command (git.c:257)
==2212== by 0x804B77D: main (git.c:454)
==2212== Uninitialised value was created by a heap allocation
==2212== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2212== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2212== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2212== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2212== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2212== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2212== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2212== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2212== by 0x804B5AA: handle_internal_command (git.c:257)
==2212== by 0x804B77D: main (git.c:454)
==2212==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==2222== Syscall param write(buf) points to uninitialised byte(s)
==2222== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==2222== by 0x8107ED6: write_in_full (wrapper.c:166)
==2222== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==2222== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2222== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2222== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2222== by 0x804B5AA: handle_internal_command (git.c:257)
==2222== by 0x804B77D: main (git.c:454)
==2222== Address 0xbee49338 is on thread 1's stack
==2222== Uninitialised value was created by a heap allocation
==2222== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2222== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2222== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2222== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2222== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==2222== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2222== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2222== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2222== by 0x804B5AA: handle_internal_command (git.c:257)
==2222== by 0x804B77D: main (git.c:454)
==2222==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 6: push without wildcard
mk_empty &&
git push testrepo refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_empty &&
git push testrepo "refs/heads/*:refs/remotes/origin/*" &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==2267== Invalid read of size 4
==2267== at 0x80E6E00: copy_ref (remote.c:904)
==2267== by 0x80EA2D5: match_refs (remote.c:1240)
==2267== by 0x80FE553: transport_push (transport.c:1046)
==2267== by 0x808F623: push_with_options (builtin-push.c:116)
==2267== by 0x808FD69: cmd_push (builtin-push.c:187)
==2267== by 0x804B5AA: handle_internal_command (git.c:257)
==2267== by 0x804B77D: main (git.c:454)
==2267== Address 0x434a3c0 is 80 bytes inside a block of size 82 alloc'd
==2267== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2267== by 0x8108080: xcalloc (wrapper.c:82)
==2267== by 0x80E9D14: one_local_ref (remote.c:1626)
==2267== by 0x80E3834: do_one_ref (refs.c:555)
==2267== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==2267== by 0x80E6CF5: get_local_heads (remote.c:1637)
==2267== by 0x80FE51F: transport_push (transport.c:1033)
==2267== by 0x808F623: push_with_options (builtin-push.c:116)
==2267== by 0x808FD69: cmd_push (builtin-push.c:187)
==2267== by 0x804B5AA: handle_internal_command (git.c:257)
==2267== by 0x804B77D: main (git.c:454)
==2267==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==2292== Syscall param write(buf) points to uninitialised byte(s)
==2292== at 0x41BBEDB: ??? (syscall-template.S:82)
==2292== by 0x80B99A0: flush (csum-file.c:17)
==2292== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2292== by 0x80B9BA8: sha1close (csum-file.c:48)
==2292== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2292== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2292== by 0x804B5AA: handle_internal_command (git.c:257)
==2292== by 0x804B77D: main (git.c:454)
==2292== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==2292== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2292== by 0x81081E6: xmalloc (wrapper.c:20)
==2292== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2292== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2292== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2292== by 0x804B5AA: handle_internal_command (git.c:257)
==2292== by 0x804B77D: main (git.c:454)
==2292== Uninitialised value was created by a heap allocation
==2292== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2292== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2292== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2292== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2292== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2292== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2292== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2292== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2292== by 0x804B5AA: handle_internal_command (git.c:257)
==2292== by 0x804B77D: main (git.c:454)
==2292==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2292== Syscall param write(buf) points to uninitialised byte(s)
==2292== at 0x41BBEDB: ??? (syscall-template.S:82)
==2292== by 0x80B99A0: flush (csum-file.c:17)
==2292== by 0x80B9C0D: sha1close (csum-file.c:54)
==2292== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2292== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2292== by 0x804B5AA: handle_internal_command (git.c:257)
==2292== by 0x804B77D: main (git.c:454)
==2292== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==2292== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2292== by 0x81081E6: xmalloc (wrapper.c:20)
==2292== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2292== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2292== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2292== by 0x804B5AA: handle_internal_command (git.c:257)
==2292== by 0x804B77D: main (git.c:454)
==2292== Uninitialised value was created by a heap allocation
==2292== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2292== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2292== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2292== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2292== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2292== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2292== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2292== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2292== by 0x804B5AA: handle_internal_command (git.c:257)
==2292== by 0x804B77D: main (git.c:454)
==2292==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==2309== Syscall param write(buf) points to uninitialised byte(s)
==2309== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==2309== by 0x8107ED6: write_in_full (wrapper.c:166)
==2309== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==2309== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2309== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2309== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2309== by 0x804B5AA: handle_internal_command (git.c:257)
==2309== by 0x804B77D: main (git.c:454)
==2309== Address 0xbed42338 is on thread 1's stack
==2309== Uninitialised value was created by a heap allocation
==2309== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2309== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2309== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2309== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2309== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==2309== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2309== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2309== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2309== by 0x804B5AA: handle_internal_command (git.c:257)
==2309== by 0x804B77D: main (git.c:454)
==2309==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 7: push with wildcard
mk_empty &&
git push testrepo "refs/heads/*:refs/remotes/origin/*" &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_empty &&
TRASH="$(pwd)/" &&
git config "url.$TRASH.insteadOf" trash/ &&
git push trash/testrepo refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==2362== Invalid read of size 4
==2362== at 0x80E6E00: copy_ref (remote.c:904)
==2362== by 0x80EA352: match_refs (remote.c:1124)
==2362== by 0x80FE553: transport_push (transport.c:1046)
==2362== by 0x808F623: push_with_options (builtin-push.c:116)
==2362== by 0x808FD69: cmd_push (builtin-push.c:187)
==2362== by 0x804B5AA: handle_internal_command (git.c:257)
==2362== by 0x804B77D: main (git.c:454)
==2362== Address 0x434a3a8 is 80 bytes inside a block of size 82 alloc'd
==2362== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2362== by 0x8108080: xcalloc (wrapper.c:82)
==2362== by 0x80E9D14: one_local_ref (remote.c:1626)
==2362== by 0x80E3834: do_one_ref (refs.c:555)
==2362== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==2362== by 0x80E6CF5: get_local_heads (remote.c:1637)
==2362== by 0x80FE51F: transport_push (transport.c:1033)
==2362== by 0x808F623: push_with_options (builtin-push.c:116)
==2362== by 0x808FD69: cmd_push (builtin-push.c:187)
==2362== by 0x804B5AA: handle_internal_command (git.c:257)
==2362== by 0x804B77D: main (git.c:454)
==2362==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==2383== Syscall param write(buf) points to uninitialised byte(s)
==2383== at 0x41BBEDB: ??? (syscall-template.S:82)
==2383== by 0x80B99A0: flush (csum-file.c:17)
==2383== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2383== by 0x80B9BA8: sha1close (csum-file.c:48)
==2383== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2383== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2383== by 0x804B5AA: handle_internal_command (git.c:257)
==2383== by 0x804B77D: main (git.c:454)
==2383== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==2383== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2383== by 0x81081E6: xmalloc (wrapper.c:20)
==2383== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2383== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2383== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2383== by 0x804B5AA: handle_internal_command (git.c:257)
==2383== by 0x804B77D: main (git.c:454)
==2383== Uninitialised value was created by a heap allocation
==2383== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2383== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2383== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2383== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2383== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2383== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2383== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2383== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2383== by 0x804B5AA: handle_internal_command (git.c:257)
==2383== by 0x804B77D: main (git.c:454)
==2383==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2383== Syscall param write(buf) points to uninitialised byte(s)
==2383== at 0x41BBEDB: ??? (syscall-template.S:82)
==2383== by 0x80B99A0: flush (csum-file.c:17)
==2383== by 0x80B9C0D: sha1close (csum-file.c:54)
==2383== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2383== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2383== by 0x804B5AA: handle_internal_command (git.c:257)
==2383== by 0x804B77D: main (git.c:454)
==2383== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==2383== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2383== by 0x81081E6: xmalloc (wrapper.c:20)
==2383== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2383== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2383== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2383== by 0x804B5AA: handle_internal_command (git.c:257)
==2383== by 0x804B77D: main (git.c:454)
==2383== Uninitialised value was created by a heap allocation
==2383== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2383== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2383== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2383== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2383== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2383== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2383== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2383== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2383== by 0x804B5AA: handle_internal_command (git.c:257)
==2383== by 0x804B77D: main (git.c:454)
==2383==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==2393== Syscall param write(buf) points to uninitialised byte(s)
==2393== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==2393== by 0x8107ED6: write_in_full (wrapper.c:166)
==2393== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==2393== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2393== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2393== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2393== by 0x804B5AA: handle_internal_command (git.c:257)
==2393== by 0x804B77D: main (git.c:454)
==2393== Address 0xbeef0338 is on thread 1's stack
==2393== Uninitialised value was created by a heap allocation
==2393== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2393== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2393== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2393== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2393== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==2393== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2393== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2393== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2393== by 0x804B5AA: handle_internal_command (git.c:257)
==2393== by 0x804B77D: main (git.c:454)
==2393==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to '/home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo'
* FAIL 8: push with insteadOf
mk_empty &&
TRASH="$(pwd)/" &&
git config "url.$TRASH.insteadOf" trash/ &&
git push trash/testrepo refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_empty &&
TRASH="$(pwd)/" &&
git config "url.$TRASH.pushInsteadOf" trash/ &&
git push trash/testrepo refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==2459== Invalid read of size 4
==2459== at 0x80E6E00: copy_ref (remote.c:904)
==2459== by 0x80EA352: match_refs (remote.c:1124)
==2459== by 0x80FE553: transport_push (transport.c:1046)
==2459== by 0x808F623: push_with_options (builtin-push.c:116)
==2459== by 0x808FD69: cmd_push (builtin-push.c:187)
==2459== by 0x804B5AA: handle_internal_command (git.c:257)
==2459== by 0x804B77D: main (git.c:454)
==2459== Address 0x434a710 is 80 bytes inside a block of size 82 alloc'd
==2459== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2459== by 0x8108080: xcalloc (wrapper.c:82)
==2459== by 0x80E9D14: one_local_ref (remote.c:1626)
==2459== by 0x80E3834: do_one_ref (refs.c:555)
==2459== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==2459== by 0x80E6CF5: get_local_heads (remote.c:1637)
==2459== by 0x80FE51F: transport_push (transport.c:1033)
==2459== by 0x808F623: push_with_options (builtin-push.c:116)
==2459== by 0x808FD69: cmd_push (builtin-push.c:187)
==2459== by 0x804B5AA: handle_internal_command (git.c:257)
==2459== by 0x804B77D: main (git.c:454)
==2459==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==2479== Syscall param write(buf) points to uninitialised byte(s)
==2479== at 0x41BBEDB: ??? (syscall-template.S:82)
==2479== by 0x80B99A0: flush (csum-file.c:17)
==2479== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2479== by 0x80B9BA8: sha1close (csum-file.c:48)
==2479== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2479== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2479== by 0x804B5AA: handle_internal_command (git.c:257)
==2479== by 0x804B77D: main (git.c:454)
==2479== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==2479== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2479== by 0x81081E6: xmalloc (wrapper.c:20)
==2479== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2479== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2479== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2479== by 0x804B5AA: handle_internal_command (git.c:257)
==2479== by 0x804B77D: main (git.c:454)
==2479== Uninitialised value was created by a heap allocation
==2479== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2479== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2479== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2479== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2479== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2479== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2479== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2479== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2479== by 0x804B5AA: handle_internal_command (git.c:257)
==2479== by 0x804B77D: main (git.c:454)
==2479==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2479== Syscall param write(buf) points to uninitialised byte(s)
==2479== at 0x41BBEDB: ??? (syscall-template.S:82)
==2479== by 0x80B99A0: flush (csum-file.c:17)
==2479== by 0x80B9C0D: sha1close (csum-file.c:54)
==2479== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2479== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2479== by 0x804B5AA: handle_internal_command (git.c:257)
==2479== by 0x804B77D: main (git.c:454)
==2479== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==2479== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2479== by 0x81081E6: xmalloc (wrapper.c:20)
==2479== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2479== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2479== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2479== by 0x804B5AA: handle_internal_command (git.c:257)
==2479== by 0x804B77D: main (git.c:454)
==2479== Uninitialised value was created by a heap allocation
==2479== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2479== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2479== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2479== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2479== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2479== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2479== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2479== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2479== by 0x804B5AA: handle_internal_command (git.c:257)
==2479== by 0x804B77D: main (git.c:454)
==2479==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==2490== Syscall param write(buf) points to uninitialised byte(s)
==2490== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==2490== by 0x8107ED6: write_in_full (wrapper.c:166)
==2490== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==2490== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2490== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2490== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2490== by 0x804B5AA: handle_internal_command (git.c:257)
==2490== by 0x804B77D: main (git.c:454)
==2490== Address 0xbebaa338 is on thread 1's stack
==2490== Uninitialised value was created by a heap allocation
==2490== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2490== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2490== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2490== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2490== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==2490== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2490== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2490== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2490== by 0x804B5AA: handle_internal_command (git.c:257)
==2490== by 0x804B77D: main (git.c:454)
==2490==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to '/home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo'
* FAIL 9: push with pushInsteadOf
mk_empty &&
TRASH="$(pwd)/" &&
git config "url.$TRASH.pushInsteadOf" trash/ &&
git push trash/testrepo refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_empty &&
TRASH="$(pwd)/" &&
git config "url.trash2/.pushInsteadOf" trash/ &&
git config remote.r.url trash/wrong &&
git config remote.r.pushurl "$TRASH/testrepo" &&
git push r refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==2563== Invalid read of size 4
==2563== at 0x80E6E00: copy_ref (remote.c:904)
==2563== by 0x80EA352: match_refs (remote.c:1124)
==2563== by 0x80FE553: transport_push (transport.c:1046)
==2563== by 0x808F623: push_with_options (builtin-push.c:116)
==2563== by 0x808FD69: cmd_push (builtin-push.c:187)
==2563== by 0x804B5AA: handle_internal_command (git.c:257)
==2563== by 0x804B77D: main (git.c:454)
==2563== Address 0x434a8f0 is 80 bytes inside a block of size 82 alloc'd
==2563== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2563== by 0x8108080: xcalloc (wrapper.c:82)
==2563== by 0x80E9D14: one_local_ref (remote.c:1626)
==2563== by 0x80E3834: do_one_ref (refs.c:555)
==2563== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==2563== by 0x80E6CF5: get_local_heads (remote.c:1637)
==2563== by 0x80FE51F: transport_push (transport.c:1033)
==2563== by 0x808F623: push_with_options (builtin-push.c:116)
==2563== by 0x808FD69: cmd_push (builtin-push.c:187)
==2563== by 0x804B5AA: handle_internal_command (git.c:257)
==2563== by 0x804B77D: main (git.c:454)
==2563==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==2595== Syscall param write(buf) points to uninitialised byte(s)
==2595== at 0x41BBEDB: ??? (syscall-template.S:82)
==2595== by 0x80B99A0: flush (csum-file.c:17)
==2595== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2595== by 0x80B9BA8: sha1close (csum-file.c:48)
==2595== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2595== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2595== by 0x804B5AA: handle_internal_command (git.c:257)
==2595== by 0x804B77D: main (git.c:454)
==2595== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==2595== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2595== by 0x81081E6: xmalloc (wrapper.c:20)
==2595== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2595== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2595== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2595== by 0x804B5AA: handle_internal_command (git.c:257)
==2595== by 0x804B77D: main (git.c:454)
==2595== Uninitialised value was created by a heap allocation
==2595== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2595== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2595== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2595== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2595== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2595== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2595== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2595== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2595== by 0x804B5AA: handle_internal_command (git.c:257)
==2595== by 0x804B77D: main (git.c:454)
==2595==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2595== Syscall param write(buf) points to uninitialised byte(s)
==2595== at 0x41BBEDB: ??? (syscall-template.S:82)
==2595== by 0x80B99A0: flush (csum-file.c:17)
==2595== by 0x80B9C0D: sha1close (csum-file.c:54)
==2595== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2595== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2595== by 0x804B5AA: handle_internal_command (git.c:257)
==2595== by 0x804B77D: main (git.c:454)
==2595== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==2595== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2595== by 0x81081E6: xmalloc (wrapper.c:20)
==2595== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2595== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2595== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2595== by 0x804B5AA: handle_internal_command (git.c:257)
==2595== by 0x804B77D: main (git.c:454)
==2595== Uninitialised value was created by a heap allocation
==2595== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2595== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2595== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2595== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2595== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2595== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2595== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2595== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2595== by 0x804B5AA: handle_internal_command (git.c:257)
==2595== by 0x804B77D: main (git.c:454)
==2595==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==2606== Syscall param write(buf) points to uninitialised byte(s)
==2606== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==2606== by 0x8107ED6: write_in_full (wrapper.c:166)
==2606== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==2606== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2606== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2606== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2606== by 0x804B5AA: handle_internal_command (git.c:257)
==2606== by 0x804B77D: main (git.c:454)
==2606== Address 0xbe91e338 is on thread 1's stack
==2606== Uninitialised value was created by a heap allocation
==2606== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2606== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2606== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2606== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2606== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==2606== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2606== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2606== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2606== by 0x804B5AA: handle_internal_command (git.c:257)
==2606== by 0x804B77D: main (git.c:454)
==2606==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to '/home/avar/g/git/t/trash directory.t5516-fetch-push//testrepo'
* FAIL 10: push with pushInsteadOf and explicit pushurl (pushInsteadOf should not rewrite)
mk_empty &&
TRASH="$(pwd)/" &&
git config "url.trash2/.pushInsteadOf" trash/ &&
git config remote.r.url trash/wrong &&
git config remote.r.pushurl "$TRASH/testrepo" &&
git push r refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&
r=$(git show-ref -s --verify refs/remotes/origin/master) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
)
* expecting success:
mk_test heads/master &&
git push testrepo &&
check_push_result $the_commit heads/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
==2811== Invalid read of size 4
==2811== at 0x80E6E00: copy_ref (remote.c:904)
==2811== by 0x80EA2D5: match_refs (remote.c:1240)
==2811== by 0x80FE553: transport_push (transport.c:1046)
==2811== by 0x808F623: push_with_options (builtin-push.c:116)
==2811== by 0x808FD69: cmd_push (builtin-push.c:187)
==2811== by 0x804B5AA: handle_internal_command (git.c:257)
==2811== by 0x804B77D: main (git.c:454)
==2811== Address 0x434adc8 is 80 bytes inside a block of size 82 alloc'd
==2811== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2811== by 0x8108080: xcalloc (wrapper.c:82)
==2811== by 0x80E9D14: one_local_ref (remote.c:1626)
==2811== by 0x80E3834: do_one_ref (refs.c:555)
==2811== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==2811== by 0x80E6CF5: get_local_heads (remote.c:1637)
==2811== by 0x80FE51F: transport_push (transport.c:1033)
==2811== by 0x808F623: push_with_options (builtin-push.c:116)
==2811== by 0x808FD69: cmd_push (builtin-push.c:187)
==2811== by 0x804B5AA: handle_internal_command (git.c:257)
==2811== by 0x804B77D: main (git.c:454)
==2811==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==2831== Syscall param write(buf) points to uninitialised byte(s)
==2831== at 0x41BBEDB: ??? (syscall-template.S:82)
==2831== by 0x80B99A0: flush (csum-file.c:17)
==2831== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2831== by 0x80B9BA8: sha1close (csum-file.c:48)
==2831== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2831== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2831== by 0x804B5AA: handle_internal_command (git.c:257)
==2831== by 0x804B77D: main (git.c:454)
==2831== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==2831== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2831== by 0x81081E6: xmalloc (wrapper.c:20)
==2831== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2831== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2831== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2831== by 0x804B5AA: handle_internal_command (git.c:257)
==2831== by 0x804B77D: main (git.c:454)
==2831== Uninitialised value was created by a heap allocation
==2831== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2831== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2831== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2831== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2831== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2831== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2831== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2831== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2831== by 0x804B5AA: handle_internal_command (git.c:257)
==2831== by 0x804B77D: main (git.c:454)
==2831==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2831== Syscall param write(buf) points to uninitialised byte(s)
==2831== at 0x41BBEDB: ??? (syscall-template.S:82)
==2831== by 0x80B99A0: flush (csum-file.c:17)
==2831== by 0x80B9C0D: sha1close (csum-file.c:54)
==2831== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2831== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2831== by 0x804B5AA: handle_internal_command (git.c:257)
==2831== by 0x804B77D: main (git.c:454)
==2831== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==2831== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2831== by 0x81081E6: xmalloc (wrapper.c:20)
==2831== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2831== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2831== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2831== by 0x804B5AA: handle_internal_command (git.c:257)
==2831== by 0x804B77D: main (git.c:454)
==2831== Uninitialised value was created by a heap allocation
==2831== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2831== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2831== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2831== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2831== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2831== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2831== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2831== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2831== by 0x804B5AA: handle_internal_command (git.c:257)
==2831== by 0x804B77D: main (git.c:454)
==2831==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==2846== Syscall param write(buf) points to uninitialised byte(s)
==2846== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==2846== by 0x8107ED6: write_in_full (wrapper.c:166)
==2846== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==2846== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2846== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2846== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2846== by 0x804B5AA: handle_internal_command (git.c:257)
==2846== by 0x804B77D: main (git.c:454)
==2846== Address 0xbecc0338 is on thread 1's stack
==2846== Uninitialised value was created by a heap allocation
==2846== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2846== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2846== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2846== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2846== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==2846== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==2846== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==2846== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==2846== by 0x804B5AA: handle_internal_command (git.c:257)
==2846== by 0x804B77D: main (git.c:454)
==2846==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 11: push with matching heads
mk_test heads/master &&
git push testrepo &&
check_push_result $the_commit heads/master
* expecting success:
mk_test heads/master &&
git push testrepo : &&
check_push_result $the_commit heads/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
==2973== Invalid read of size 4
==2973== at 0x80E6E00: copy_ref (remote.c:904)
==2973== by 0x80EA2D5: match_refs (remote.c:1240)
==2973== by 0x80FE553: transport_push (transport.c:1046)
==2973== by 0x808F623: push_with_options (builtin-push.c:116)
==2973== by 0x808FD69: cmd_push (builtin-push.c:187)
==2973== by 0x804B5AA: handle_internal_command (git.c:257)
==2973== by 0x804B77D: main (git.c:454)
==2973== Address 0x434adc8 is 80 bytes inside a block of size 82 alloc'd
==2973== at 0x402425F: calloc (vg_replace_malloc.c:467)
==2973== by 0x8108080: xcalloc (wrapper.c:82)
==2973== by 0x80E9D14: one_local_ref (remote.c:1626)
==2973== by 0x80E3834: do_one_ref (refs.c:555)
==2973== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==2973== by 0x80E6CF5: get_local_heads (remote.c:1637)
==2973== by 0x80FE51F: transport_push (transport.c:1033)
==2973== by 0x808F623: push_with_options (builtin-push.c:116)
==2973== by 0x808FD69: cmd_push (builtin-push.c:187)
==2973== by 0x804B5AA: handle_internal_command (git.c:257)
==2973== by 0x804B77D: main (git.c:454)
==2973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==2993== Syscall param write(buf) points to uninitialised byte(s)
==2993== at 0x41BBEDB: ??? (syscall-template.S:82)
==2993== by 0x80B99A0: flush (csum-file.c:17)
==2993== by 0x80B9B5C: sha1flush (csum-file.c:39)
==2993== by 0x80B9BA8: sha1close (csum-file.c:48)
==2993== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2993== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2993== by 0x804B5AA: handle_internal_command (git.c:257)
==2993== by 0x804B77D: main (git.c:454)
==2993== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==2993== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2993== by 0x81081E6: xmalloc (wrapper.c:20)
==2993== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2993== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2993== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2993== by 0x804B5AA: handle_internal_command (git.c:257)
==2993== by 0x804B77D: main (git.c:454)
==2993== Uninitialised value was created by a heap allocation
==2993== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2993== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2993== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2993== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2993== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2993== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2993== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2993== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2993== by 0x804B5AA: handle_internal_command (git.c:257)
==2993== by 0x804B77D: main (git.c:454)
==2993==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==2993== Syscall param write(buf) points to uninitialised byte(s)
==2993== at 0x41BBEDB: ??? (syscall-template.S:82)
==2993== by 0x80B99A0: flush (csum-file.c:17)
==2993== by 0x80B9C0D: sha1close (csum-file.c:54)
==2993== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==2993== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2993== by 0x804B5AA: handle_internal_command (git.c:257)
==2993== by 0x804B77D: main (git.c:454)
==2993== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==2993== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2993== by 0x81081E6: xmalloc (wrapper.c:20)
==2993== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==2993== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==2993== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2993== by 0x804B5AA: handle_internal_command (git.c:257)
==2993== by 0x804B77D: main (git.c:454)
==2993== Uninitialised value was created by a heap allocation
==2993== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==2993== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==2993== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==2993== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==2993== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==2993== by 0x808A738: write_one (builtin-pack-objects.c:318)
==2993== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==2993== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==2993== by 0x804B5AA: handle_internal_command (git.c:257)
==2993== by 0x804B77D: main (git.c:454)
==2993==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==3003== Syscall param write(buf) points to uninitialised byte(s)
==3003== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==3003== by 0x8107ED6: write_in_full (wrapper.c:166)
==3003== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==3003== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3003== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3003== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3003== by 0x804B5AA: handle_internal_command (git.c:257)
==3003== by 0x804B77D: main (git.c:454)
==3003== Address 0xbeb51338 is on thread 1's stack
==3003== Uninitialised value was created by a heap allocation
==3003== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3003== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3003== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3003== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3003== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==3003== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3003== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3003== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3003== by 0x804B5AA: handle_internal_command (git.c:257)
==3003== by 0x804B77D: main (git.c:454)
==3003==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 12: push with matching heads on the command line
mk_test heads/master &&
git push testrepo : &&
check_push_result $the_commit heads/master
* expecting success:
mk_test heads/master &&
git push testrepo : &&
git commit --amend -massaged &&
test_must_fail git push testrepo &&
check_push_result $the_commit heads/master &&
git reset --hard $the_commit
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
==3120== Invalid read of size 4
==3120== at 0x80E6E00: copy_ref (remote.c:904)
==3120== by 0x80EA2D5: match_refs (remote.c:1240)
==3120== by 0x80FE553: transport_push (transport.c:1046)
==3120== by 0x808F623: push_with_options (builtin-push.c:116)
==3120== by 0x808FD69: cmd_push (builtin-push.c:187)
==3120== by 0x804B5AA: handle_internal_command (git.c:257)
==3120== by 0x804B77D: main (git.c:454)
==3120== Address 0x434adc8 is 80 bytes inside a block of size 82 alloc'd
==3120== at 0x402425F: calloc (vg_replace_malloc.c:467)
==3120== by 0x8108080: xcalloc (wrapper.c:82)
==3120== by 0x80E9D14: one_local_ref (remote.c:1626)
==3120== by 0x80E3834: do_one_ref (refs.c:555)
==3120== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==3120== by 0x80E6CF5: get_local_heads (remote.c:1637)
==3120== by 0x80FE51F: transport_push (transport.c:1033)
==3120== by 0x808F623: push_with_options (builtin-push.c:116)
==3120== by 0x808FD69: cmd_push (builtin-push.c:187)
==3120== by 0x804B5AA: handle_internal_command (git.c:257)
==3120== by 0x804B77D: main (git.c:454)
==3120==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==3141== Syscall param write(buf) points to uninitialised byte(s)
==3141== at 0x41BBEDB: ??? (syscall-template.S:82)
==3141== by 0x80B99A0: flush (csum-file.c:17)
==3141== by 0x80B9B5C: sha1flush (csum-file.c:39)
==3141== by 0x80B9BA8: sha1close (csum-file.c:48)
==3141== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3141== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3141== by 0x804B5AA: handle_internal_command (git.c:257)
==3141== by 0x804B77D: main (git.c:454)
==3141== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==3141== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3141== by 0x81081E6: xmalloc (wrapper.c:20)
==3141== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3141== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3141== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3141== by 0x804B5AA: handle_internal_command (git.c:257)
==3141== by 0x804B77D: main (git.c:454)
==3141== Uninitialised value was created by a heap allocation
==3141== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3141== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3141== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3141== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3141== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3141== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3141== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3141== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3141== by 0x804B5AA: handle_internal_command (git.c:257)
==3141== by 0x804B77D: main (git.c:454)
==3141==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==3141== Syscall param write(buf) points to uninitialised byte(s)
==3141== at 0x41BBEDB: ??? (syscall-template.S:82)
==3141== by 0x80B99A0: flush (csum-file.c:17)
==3141== by 0x80B9C0D: sha1close (csum-file.c:54)
==3141== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3141== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3141== by 0x804B5AA: handle_internal_command (git.c:257)
==3141== by 0x804B77D: main (git.c:454)
==3141== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==3141== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3141== by 0x81081E6: xmalloc (wrapper.c:20)
==3141== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3141== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3141== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3141== by 0x804B5AA: handle_internal_command (git.c:257)
==3141== by 0x804B77D: main (git.c:454)
==3141== Uninitialised value was created by a heap allocation
==3141== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3141== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3141== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3141== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3141== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3141== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3141== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3141== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3141== by 0x804B5AA: handle_internal_command (git.c:257)
==3141== by 0x804B77D: main (git.c:454)
==3141==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==3151== Syscall param write(buf) points to uninitialised byte(s)
==3151== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==3151== by 0x8107ED6: write_in_full (wrapper.c:166)
==3151== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==3151== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3151== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3151== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3151== by 0x804B5AA: handle_internal_command (git.c:257)
==3151== by 0x804B77D: main (git.c:454)
==3151== Address 0xbeb54338 is on thread 1's stack
==3151== Uninitialised value was created by a heap allocation
==3151== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3151== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3151== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3151== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3151== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==3151== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3151== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3151== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3151== by 0x804B5AA: handle_internal_command (git.c:257)
==3151== by 0x804B77D: main (git.c:454)
==3151==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 13: failed (non-fast-forward) push with matching heads
mk_test heads/master &&
git push testrepo : &&
git commit --amend -massaged &&
test_must_fail git push testrepo &&
check_push_result $the_commit heads/master &&
git reset --hard $the_commit
* expecting success:
mk_test heads/master &&
git push testrepo : &&
git commit --amend -massaged &&
git push --force testrepo &&
! check_push_result $the_commit heads/master &&
git reset --hard $the_commit
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
==3263== Invalid read of size 4
==3263== at 0x80E6E00: copy_ref (remote.c:904)
==3263== by 0x80EA2D5: match_refs (remote.c:1240)
==3263== by 0x80FE553: transport_push (transport.c:1046)
==3263== by 0x808F623: push_with_options (builtin-push.c:116)
==3263== by 0x808FD69: cmd_push (builtin-push.c:187)
==3263== by 0x804B5AA: handle_internal_command (git.c:257)
==3263== by 0x804B77D: main (git.c:454)
==3263== Address 0x434adc8 is 80 bytes inside a block of size 82 alloc'd
==3263== at 0x402425F: calloc (vg_replace_malloc.c:467)
==3263== by 0x8108080: xcalloc (wrapper.c:82)
==3263== by 0x80E9D14: one_local_ref (remote.c:1626)
==3263== by 0x80E3834: do_one_ref (refs.c:555)
==3263== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==3263== by 0x80E6CF5: get_local_heads (remote.c:1637)
==3263== by 0x80FE51F: transport_push (transport.c:1033)
==3263== by 0x808F623: push_with_options (builtin-push.c:116)
==3263== by 0x808FD69: cmd_push (builtin-push.c:187)
==3263== by 0x804B5AA: handle_internal_command (git.c:257)
==3263== by 0x804B77D: main (git.c:454)
==3263==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==3283== Syscall param write(buf) points to uninitialised byte(s)
==3283== at 0x41BBEDB: ??? (syscall-template.S:82)
==3283== by 0x80B99A0: flush (csum-file.c:17)
==3283== by 0x80B9B5C: sha1flush (csum-file.c:39)
==3283== by 0x80B9BA8: sha1close (csum-file.c:48)
==3283== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3283== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3283== by 0x804B5AA: handle_internal_command (git.c:257)
==3283== by 0x804B77D: main (git.c:454)
==3283== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==3283== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3283== by 0x81081E6: xmalloc (wrapper.c:20)
==3283== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3283== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3283== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3283== by 0x804B5AA: handle_internal_command (git.c:257)
==3283== by 0x804B77D: main (git.c:454)
==3283== Uninitialised value was created by a heap allocation
==3283== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3283== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3283== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3283== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3283== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3283== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3283== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3283== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3283== by 0x804B5AA: handle_internal_command (git.c:257)
==3283== by 0x804B77D: main (git.c:454)
==3283==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==3283== Syscall param write(buf) points to uninitialised byte(s)
==3283== at 0x41BBEDB: ??? (syscall-template.S:82)
==3283== by 0x80B99A0: flush (csum-file.c:17)
==3283== by 0x80B9C0D: sha1close (csum-file.c:54)
==3283== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3283== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3283== by 0x804B5AA: handle_internal_command (git.c:257)
==3283== by 0x804B77D: main (git.c:454)
==3283== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==3283== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3283== by 0x81081E6: xmalloc (wrapper.c:20)
==3283== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3283== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3283== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3283== by 0x804B5AA: handle_internal_command (git.c:257)
==3283== by 0x804B77D: main (git.c:454)
==3283== Uninitialised value was created by a heap allocation
==3283== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3283== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3283== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3283== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3283== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3283== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3283== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3283== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3283== by 0x804B5AA: handle_internal_command (git.c:257)
==3283== by 0x804B77D: main (git.c:454)
==3283==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==3293== Syscall param write(buf) points to uninitialised byte(s)
==3293== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==3293== by 0x8107ED6: write_in_full (wrapper.c:166)
==3293== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==3293== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3293== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3293== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3293== by 0x804B5AA: handle_internal_command (git.c:257)
==3293== by 0x804B77D: main (git.c:454)
==3293== Address 0xbea1b338 is on thread 1's stack
==3293== Uninitialised value was created by a heap allocation
==3293== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3293== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3293== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3293== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3293== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==3293== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3293== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3293== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3293== by 0x804B5AA: handle_internal_command (git.c:257)
==3293== by 0x804B77D: main (git.c:454)
==3293==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 14: push --force with matching heads
mk_test heads/master &&
git push testrepo : &&
git commit --amend -massaged &&
git push --force testrepo &&
! check_push_result $the_commit heads/master &&
git reset --hard $the_commit
* expecting success:
mk_test heads/master &&
git push testrepo : &&
git commit --amend -massaged &&
git push testrepo +: &&
! check_push_result $the_commit heads/master &&
git reset --hard $the_commit
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
==3402== Invalid read of size 4
==3402== at 0x80E6E00: copy_ref (remote.c:904)
==3402== by 0x80EA2D5: match_refs (remote.c:1240)
==3402== by 0x80FE553: transport_push (transport.c:1046)
==3402== by 0x808F623: push_with_options (builtin-push.c:116)
==3402== by 0x808FD69: cmd_push (builtin-push.c:187)
==3402== by 0x804B5AA: handle_internal_command (git.c:257)
==3402== by 0x804B77D: main (git.c:454)
==3402== Address 0x434adc8 is 80 bytes inside a block of size 82 alloc'd
==3402== at 0x402425F: calloc (vg_replace_malloc.c:467)
==3402== by 0x8108080: xcalloc (wrapper.c:82)
==3402== by 0x80E9D14: one_local_ref (remote.c:1626)
==3402== by 0x80E3834: do_one_ref (refs.c:555)
==3402== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==3402== by 0x80E6CF5: get_local_heads (remote.c:1637)
==3402== by 0x80FE51F: transport_push (transport.c:1033)
==3402== by 0x808F623: push_with_options (builtin-push.c:116)
==3402== by 0x808FD69: cmd_push (builtin-push.c:187)
==3402== by 0x804B5AA: handle_internal_command (git.c:257)
==3402== by 0x804B77D: main (git.c:454)
==3402==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==3423== Syscall param write(buf) points to uninitialised byte(s)
==3423== at 0x41BBEDB: ??? (syscall-template.S:82)
==3423== by 0x80B99A0: flush (csum-file.c:17)
==3423== by 0x80B9B5C: sha1flush (csum-file.c:39)
==3423== by 0x80B9BA8: sha1close (csum-file.c:48)
==3423== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3423== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3423== by 0x804B5AA: handle_internal_command (git.c:257)
==3423== by 0x804B77D: main (git.c:454)
==3423== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==3423== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3423== by 0x81081E6: xmalloc (wrapper.c:20)
==3423== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3423== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3423== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3423== by 0x804B5AA: handle_internal_command (git.c:257)
==3423== by 0x804B77D: main (git.c:454)
==3423== Uninitialised value was created by a heap allocation
==3423== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3423== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3423== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3423== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3423== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3423== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3423== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3423== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3423== by 0x804B5AA: handle_internal_command (git.c:257)
==3423== by 0x804B77D: main (git.c:454)
==3423==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==3423== Syscall param write(buf) points to uninitialised byte(s)
==3423== at 0x41BBEDB: ??? (syscall-template.S:82)
==3423== by 0x80B99A0: flush (csum-file.c:17)
==3423== by 0x80B9C0D: sha1close (csum-file.c:54)
==3423== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3423== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3423== by 0x804B5AA: handle_internal_command (git.c:257)
==3423== by 0x804B77D: main (git.c:454)
==3423== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==3423== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3423== by 0x81081E6: xmalloc (wrapper.c:20)
==3423== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3423== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3423== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3423== by 0x804B5AA: handle_internal_command (git.c:257)
==3423== by 0x804B77D: main (git.c:454)
==3423== Uninitialised value was created by a heap allocation
==3423== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3423== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3423== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3423== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3423== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3423== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3423== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3423== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3423== by 0x804B5AA: handle_internal_command (git.c:257)
==3423== by 0x804B77D: main (git.c:454)
==3423==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==3433== Syscall param write(buf) points to uninitialised byte(s)
==3433== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==3433== by 0x8107ED6: write_in_full (wrapper.c:166)
==3433== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==3433== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3433== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3433== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3433== by 0x804B5AA: handle_internal_command (git.c:257)
==3433== by 0x804B77D: main (git.c:454)
==3433== Address 0xbe898338 is on thread 1's stack
==3433== Uninitialised value was created by a heap allocation
==3433== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3433== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3433== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3433== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3433== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==3433== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3433== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3433== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3433== by 0x804B5AA: handle_internal_command (git.c:257)
==3433== by 0x804B77D: main (git.c:454)
==3433==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 15: push with matching heads and forced update
mk_test heads/master &&
git push testrepo : &&
git commit --amend -massaged &&
git push testrepo +: &&
! check_push_result $the_commit heads/master &&
git reset --hard $the_commit
* expecting success:
mk_test heads/master &&
git push testrepo master:master &&
check_push_result $the_commit heads/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
==3544== Invalid read of size 4
==3544== at 0x80E6E00: copy_ref (remote.c:904)
==3544== by 0x80EA352: match_refs (remote.c:1124)
==3544== by 0x80FE553: transport_push (transport.c:1046)
==3544== by 0x808F623: push_with_options (builtin-push.c:116)
==3544== by 0x808FD69: cmd_push (builtin-push.c:187)
==3544== by 0x804B5AA: handle_internal_command (git.c:257)
==3544== by 0x804B77D: main (git.c:454)
==3544== Address 0x434adc8 is 80 bytes inside a block of size 82 alloc'd
==3544== at 0x402425F: calloc (vg_replace_malloc.c:467)
==3544== by 0x8108080: xcalloc (wrapper.c:82)
==3544== by 0x80E9D14: one_local_ref (remote.c:1626)
==3544== by 0x80E3834: do_one_ref (refs.c:555)
==3544== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==3544== by 0x80E6CF5: get_local_heads (remote.c:1637)
==3544== by 0x80FE51F: transport_push (transport.c:1033)
==3544== by 0x808F623: push_with_options (builtin-push.c:116)
==3544== by 0x808FD69: cmd_push (builtin-push.c:187)
==3544== by 0x804B5AA: handle_internal_command (git.c:257)
==3544== by 0x804B77D: main (git.c:454)
==3544==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==3564== Syscall param write(buf) points to uninitialised byte(s)
==3564== at 0x41BBEDB: ??? (syscall-template.S:82)
==3564== by 0x80B99A0: flush (csum-file.c:17)
==3564== by 0x80B9B5C: sha1flush (csum-file.c:39)
==3564== by 0x80B9BA8: sha1close (csum-file.c:48)
==3564== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3564== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3564== by 0x804B5AA: handle_internal_command (git.c:257)
==3564== by 0x804B77D: main (git.c:454)
==3564== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==3564== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3564== by 0x81081E6: xmalloc (wrapper.c:20)
==3564== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3564== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3564== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3564== by 0x804B5AA: handle_internal_command (git.c:257)
==3564== by 0x804B77D: main (git.c:454)
==3564== Uninitialised value was created by a heap allocation
==3564== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3564== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3564== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3564== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3564== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3564== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3564== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3564== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3564== by 0x804B5AA: handle_internal_command (git.c:257)
==3564== by 0x804B77D: main (git.c:454)
==3564==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==3564== Syscall param write(buf) points to uninitialised byte(s)
==3564== at 0x41BBEDB: ??? (syscall-template.S:82)
==3564== by 0x80B99A0: flush (csum-file.c:17)
==3564== by 0x80B9C0D: sha1close (csum-file.c:54)
==3564== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3564== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3564== by 0x804B5AA: handle_internal_command (git.c:257)
==3564== by 0x804B77D: main (git.c:454)
==3564== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==3564== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3564== by 0x81081E6: xmalloc (wrapper.c:20)
==3564== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3564== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3564== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3564== by 0x804B5AA: handle_internal_command (git.c:257)
==3564== by 0x804B77D: main (git.c:454)
==3564== Uninitialised value was created by a heap allocation
==3564== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3564== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3564== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3564== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3564== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3564== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3564== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3564== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3564== by 0x804B5AA: handle_internal_command (git.c:257)
==3564== by 0x804B77D: main (git.c:454)
==3564==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==3574== Syscall param write(buf) points to uninitialised byte(s)
==3574== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==3574== by 0x8107ED6: write_in_full (wrapper.c:166)
==3574== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==3574== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3574== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3574== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3574== by 0x804B5AA: handle_internal_command (git.c:257)
==3574== by 0x804B77D: main (git.c:454)
==3574== Address 0xbef22338 is on thread 1's stack
==3574== Uninitialised value was created by a heap allocation
==3574== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3574== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3574== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3574== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3574== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==3574== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3574== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3574== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3574== by 0x804B5AA: handle_internal_command (git.c:257)
==3574== by 0x804B77D: main (git.c:454)
==3574==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 16: push with no ambiguity (1)
mk_test heads/master &&
git push testrepo master:master &&
check_push_result $the_commit heads/master
* expecting success:
mk_test remotes/origin/master &&
git push testrepo master:origin/master &&
check_push_result $the_commit remotes/origin/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> origin/master
notice: HEAD points to an unborn branch (master)
==3683== Invalid read of size 4
==3683== at 0x80E6E00: copy_ref (remote.c:904)
==3683== by 0x80EA352: match_refs (remote.c:1124)
==3683== by 0x80FE553: transport_push (transport.c:1046)
==3683== by 0x808F623: push_with_options (builtin-push.c:116)
==3683== by 0x808FD69: cmd_push (builtin-push.c:187)
==3683== by 0x804B5AA: handle_internal_command (git.c:257)
==3683== by 0x804B77D: main (git.c:454)
==3683== Address 0x434add0 is 80 bytes inside a block of size 82 alloc'd
==3683== at 0x402425F: calloc (vg_replace_malloc.c:467)
==3683== by 0x8108080: xcalloc (wrapper.c:82)
==3683== by 0x80E9D14: one_local_ref (remote.c:1626)
==3683== by 0x80E3834: do_one_ref (refs.c:555)
==3683== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==3683== by 0x80E6CF5: get_local_heads (remote.c:1637)
==3683== by 0x80FE51F: transport_push (transport.c:1033)
==3683== by 0x808F623: push_with_options (builtin-push.c:116)
==3683== by 0x808FD69: cmd_push (builtin-push.c:187)
==3683== by 0x804B5AA: handle_internal_command (git.c:257)
==3683== by 0x804B77D: main (git.c:454)
==3683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==3704== Syscall param write(buf) points to uninitialised byte(s)
==3704== at 0x41BBEDB: ??? (syscall-template.S:82)
==3704== by 0x80B99A0: flush (csum-file.c:17)
==3704== by 0x80B9B5C: sha1flush (csum-file.c:39)
==3704== by 0x80B9BA8: sha1close (csum-file.c:48)
==3704== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3704== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3704== by 0x804B5AA: handle_internal_command (git.c:257)
==3704== by 0x804B77D: main (git.c:454)
==3704== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==3704== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3704== by 0x81081E6: xmalloc (wrapper.c:20)
==3704== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3704== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3704== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3704== by 0x804B5AA: handle_internal_command (git.c:257)
==3704== by 0x804B77D: main (git.c:454)
==3704== Uninitialised value was created by a heap allocation
==3704== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3704== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3704== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3704== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3704== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3704== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3704== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3704== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3704== by 0x804B5AA: handle_internal_command (git.c:257)
==3704== by 0x804B77D: main (git.c:454)
==3704==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==3704== Syscall param write(buf) points to uninitialised byte(s)
==3704== at 0x41BBEDB: ??? (syscall-template.S:82)
==3704== by 0x80B99A0: flush (csum-file.c:17)
==3704== by 0x80B9C0D: sha1close (csum-file.c:54)
==3704== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3704== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3704== by 0x804B5AA: handle_internal_command (git.c:257)
==3704== by 0x804B77D: main (git.c:454)
==3704== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==3704== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3704== by 0x81081E6: xmalloc (wrapper.c:20)
==3704== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3704== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3704== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3704== by 0x804B5AA: handle_internal_command (git.c:257)
==3704== by 0x804B77D: main (git.c:454)
==3704== Uninitialised value was created by a heap allocation
==3704== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3704== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3704== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3704== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3704== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3704== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3704== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3704== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3704== by 0x804B5AA: handle_internal_command (git.c:257)
==3704== by 0x804B77D: main (git.c:454)
==3704==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==3717== Syscall param write(buf) points to uninitialised byte(s)
==3717== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==3717== by 0x8107ED6: write_in_full (wrapper.c:166)
==3717== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==3717== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3717== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3717== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3717== by 0x804B5AA: handle_internal_command (git.c:257)
==3717== by 0x804B77D: main (git.c:454)
==3717== Address 0xbef9e338 is on thread 1's stack
==3717== Uninitialised value was created by a heap allocation
==3717== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3717== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3717== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3717== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3717== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==3717== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3717== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3717== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3717== by 0x804B5AA: handle_internal_command (git.c:257)
==3717== by 0x804B77D: main (git.c:454)
==3717==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 17: push with no ambiguity (2)
mk_test remotes/origin/master &&
git push testrepo master:origin/master &&
check_push_result $the_commit remotes/origin/master
* expecting success:
mk_test heads/master heads/t/master &&
git branch -f t/master master &&
git push testrepo master &&
check_push_result $the_commit heads/master &&
check_push_result $the_first_commit heads/t/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> t/master
==3893== Invalid read of size 4
==3893== at 0x80E6E00: copy_ref (remote.c:904)
==3893== by 0x80EA352: match_refs (remote.c:1124)
==3893== by 0x80FE553: transport_push (transport.c:1046)
==3893== by 0x808F623: push_with_options (builtin-push.c:116)
==3893== by 0x808FD69: cmd_push (builtin-push.c:187)
==3893== by 0x804B5AA: handle_internal_command (git.c:257)
==3893== by 0x804B77D: main (git.c:454)
==3893== Address 0x4353050 is 80 bytes inside a block of size 82 alloc'd
==3893== at 0x402425F: calloc (vg_replace_malloc.c:467)
==3893== by 0x8108080: xcalloc (wrapper.c:82)
==3893== by 0x80E9D14: one_local_ref (remote.c:1626)
==3893== by 0x80E3834: do_one_ref (refs.c:555)
==3893== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==3893== by 0x80E6CF5: get_local_heads (remote.c:1637)
==3893== by 0x80FE51F: transport_push (transport.c:1033)
==3893== by 0x808F623: push_with_options (builtin-push.c:116)
==3893== by 0x808FD69: cmd_push (builtin-push.c:187)
==3893== by 0x804B5AA: handle_internal_command (git.c:257)
==3893== by 0x804B77D: main (git.c:454)
==3893==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==3913== Syscall param write(buf) points to uninitialised byte(s)
==3913== at 0x41BBEDB: ??? (syscall-template.S:82)
==3913== by 0x80B99A0: flush (csum-file.c:17)
==3913== by 0x80B9B5C: sha1flush (csum-file.c:39)
==3913== by 0x80B9BA8: sha1close (csum-file.c:48)
==3913== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3913== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3913== by 0x804B5AA: handle_internal_command (git.c:257)
==3913== by 0x804B77D: main (git.c:454)
==3913== Address 0x439e3f5 is 341 bytes inside a block of size 8,320 alloc'd
==3913== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3913== by 0x81081E6: xmalloc (wrapper.c:20)
==3913== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3913== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3913== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3913== by 0x804B5AA: handle_internal_command (git.c:257)
==3913== by 0x804B77D: main (git.c:454)
==3913== Uninitialised value was created by a heap allocation
==3913== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3913== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3913== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3913== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3913== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3913== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3913== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3913== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3913== by 0x804B5AA: handle_internal_command (git.c:257)
==3913== by 0x804B77D: main (git.c:454)
==3913==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==3913== Syscall param write(buf) points to uninitialised byte(s)
==3913== at 0x41BBEDB: ??? (syscall-template.S:82)
==3913== by 0x80B99A0: flush (csum-file.c:17)
==3913== by 0x80B9C0D: sha1close (csum-file.c:54)
==3913== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==3913== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3913== by 0x804B5AA: handle_internal_command (git.c:257)
==3913== by 0x804B77D: main (git.c:454)
==3913== Address 0x439e320 is 128 bytes inside a block of size 8,320 alloc'd
==3913== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3913== by 0x81081E6: xmalloc (wrapper.c:20)
==3913== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==3913== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==3913== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3913== by 0x804B5AA: handle_internal_command (git.c:257)
==3913== by 0x804B77D: main (git.c:454)
==3913== Uninitialised value was created by a heap allocation
==3913== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3913== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3913== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3913== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3913== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==3913== by 0x808A738: write_one (builtin-pack-objects.c:318)
==3913== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==3913== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==3913== by 0x804B5AA: handle_internal_command (git.c:257)
==3913== by 0x804B77D: main (git.c:454)
==3913==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==3926== Syscall param write(buf) points to uninitialised byte(s)
==3926== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==3926== by 0x8107ED6: write_in_full (wrapper.c:166)
==3926== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==3926== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3926== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3926== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3926== by 0x804B5AA: handle_internal_command (git.c:257)
==3926== by 0x804B77D: main (git.c:454)
==3926== Address 0xbee93338 is on thread 1's stack
==3926== Uninitialised value was created by a heap allocation
==3926== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==3926== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==3926== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==3926== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==3926== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==3926== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==3926== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==3926== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==3926== by 0x804B5AA: handle_internal_command (git.c:257)
==3926== by 0x804B77D: main (git.c:454)
==3926==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 18: push with colon-less refspec, no ambiguity
mk_test heads/master heads/t/master &&
git branch -f t/master master &&
git push testrepo master &&
check_push_result $the_commit heads/master &&
check_push_result $the_first_commit heads/t/master
* expecting success:
mk_test heads/master remotes/origin/master &&
git push testrepo master:master &&
check_push_result $the_commit heads/master &&
check_push_result $the_first_commit remotes/origin/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> origin/master
==4120== Invalid read of size 4
==4120== at 0x80E6E00: copy_ref (remote.c:904)
==4120== by 0x80EA352: match_refs (remote.c:1124)
==4120== by 0x80FE553: transport_push (transport.c:1046)
==4120== by 0x808F623: push_with_options (builtin-push.c:116)
==4120== by 0x808FD69: cmd_push (builtin-push.c:187)
==4120== by 0x804B5AA: handle_internal_command (git.c:257)
==4120== by 0x804B77D: main (git.c:454)
==4120== Address 0x4353058 is 80 bytes inside a block of size 82 alloc'd
==4120== at 0x402425F: calloc (vg_replace_malloc.c:467)
==4120== by 0x8108080: xcalloc (wrapper.c:82)
==4120== by 0x80E9D14: one_local_ref (remote.c:1626)
==4120== by 0x80E3834: do_one_ref (refs.c:555)
==4120== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==4120== by 0x80E6CF5: get_local_heads (remote.c:1637)
==4120== by 0x80FE51F: transport_push (transport.c:1033)
==4120== by 0x808F623: push_with_options (builtin-push.c:116)
==4120== by 0x808FD69: cmd_push (builtin-push.c:187)
==4120== by 0x804B5AA: handle_internal_command (git.c:257)
==4120== by 0x804B77D: main (git.c:454)
==4120==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==4140== Syscall param write(buf) points to uninitialised byte(s)
==4140== at 0x41BBEDB: ??? (syscall-template.S:82)
==4140== by 0x80B99A0: flush (csum-file.c:17)
==4140== by 0x80B9B5C: sha1flush (csum-file.c:39)
==4140== by 0x80B9BA8: sha1close (csum-file.c:48)
==4140== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==4140== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4140== by 0x804B5AA: handle_internal_command (git.c:257)
==4140== by 0x804B77D: main (git.c:454)
==4140== Address 0x439e3f5 is 341 bytes inside a block of size 8,320 alloc'd
==4140== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4140== by 0x81081E6: xmalloc (wrapper.c:20)
==4140== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==4140== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==4140== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4140== by 0x804B5AA: handle_internal_command (git.c:257)
==4140== by 0x804B77D: main (git.c:454)
==4140== Uninitialised value was created by a heap allocation
==4140== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4140== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4140== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4140== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4140== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==4140== by 0x808A738: write_one (builtin-pack-objects.c:318)
==4140== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==4140== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4140== by 0x804B5AA: handle_internal_command (git.c:257)
==4140== by 0x804B77D: main (git.c:454)
==4140==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==4140== Syscall param write(buf) points to uninitialised byte(s)
==4140== at 0x41BBEDB: ??? (syscall-template.S:82)
==4140== by 0x80B99A0: flush (csum-file.c:17)
==4140== by 0x80B9C0D: sha1close (csum-file.c:54)
==4140== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==4140== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4140== by 0x804B5AA: handle_internal_command (git.c:257)
==4140== by 0x804B77D: main (git.c:454)
==4140== Address 0x439e320 is 128 bytes inside a block of size 8,320 alloc'd
==4140== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4140== by 0x81081E6: xmalloc (wrapper.c:20)
==4140== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==4140== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==4140== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4140== by 0x804B5AA: handle_internal_command (git.c:257)
==4140== by 0x804B77D: main (git.c:454)
==4140== Uninitialised value was created by a heap allocation
==4140== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4140== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4140== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4140== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4140== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==4140== by 0x808A738: write_one (builtin-pack-objects.c:318)
==4140== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==4140== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4140== by 0x804B5AA: handle_internal_command (git.c:257)
==4140== by 0x804B77D: main (git.c:454)
==4140==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==4150== Syscall param write(buf) points to uninitialised byte(s)
==4150== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==4150== by 0x8107ED6: write_in_full (wrapper.c:166)
==4150== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==4150== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==4150== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==4150== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==4150== by 0x804B5AA: handle_internal_command (git.c:257)
==4150== by 0x804B77D: main (git.c:454)
==4150== Address 0xbeba1338 is on thread 1's stack
==4150== Uninitialised value was created by a heap allocation
==4150== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4150== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4150== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4150== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4150== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==4150== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==4150== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==4150== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==4150== by 0x804B5AA: handle_internal_command (git.c:257)
==4150== by 0x804B77D: main (git.c:454)
==4150==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 19: push with weak ambiguity (1)
mk_test heads/master remotes/origin/master &&
git push testrepo master:master &&
check_push_result $the_commit heads/master &&
check_push_result $the_first_commit remotes/origin/master
* expecting success:
mk_test heads/master remotes/origin/master remotes/another/master &&
git push testrepo master:master &&
check_push_result $the_commit heads/master &&
check_push_result $the_first_commit remotes/origin/master remotes/another/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> origin/master
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> another/master
==4387== Invalid read of size 4
==4387== at 0x80E6E00: copy_ref (remote.c:904)
==4387== by 0x80EA352: match_refs (remote.c:1124)
==4387== by 0x80FE553: transport_push (transport.c:1046)
==4387== by 0x808F623: push_with_options (builtin-push.c:116)
==4387== by 0x808FD69: cmd_push (builtin-push.c:187)
==4387== by 0x804B5AA: handle_internal_command (git.c:257)
==4387== by 0x804B77D: main (git.c:454)
==4387== Address 0x43530e8 is 80 bytes inside a block of size 82 alloc'd
==4387== at 0x402425F: calloc (vg_replace_malloc.c:467)
==4387== by 0x8108080: xcalloc (wrapper.c:82)
==4387== by 0x80E9D14: one_local_ref (remote.c:1626)
==4387== by 0x80E3834: do_one_ref (refs.c:555)
==4387== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==4387== by 0x80E6CF5: get_local_heads (remote.c:1637)
==4387== by 0x80FE51F: transport_push (transport.c:1033)
==4387== by 0x808F623: push_with_options (builtin-push.c:116)
==4387== by 0x808FD69: cmd_push (builtin-push.c:187)
==4387== by 0x804B5AA: handle_internal_command (git.c:257)
==4387== by 0x804B77D: main (git.c:454)
==4387==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==4407== Syscall param write(buf) points to uninitialised byte(s)
==4407== at 0x41BBEDB: ??? (syscall-template.S:82)
==4407== by 0x80B99A0: flush (csum-file.c:17)
==4407== by 0x80B9B5C: sha1flush (csum-file.c:39)
==4407== by 0x80B9BA8: sha1close (csum-file.c:48)
==4407== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==4407== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4407== by 0x804B5AA: handle_internal_command (git.c:257)
==4407== by 0x804B77D: main (git.c:454)
==4407== Address 0x43a0a3d is 341 bytes inside a block of size 8,320 alloc'd
==4407== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4407== by 0x81081E6: xmalloc (wrapper.c:20)
==4407== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==4407== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==4407== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4407== by 0x804B5AA: handle_internal_command (git.c:257)
==4407== by 0x804B77D: main (git.c:454)
==4407== Uninitialised value was created by a heap allocation
==4407== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4407== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4407== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4407== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4407== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==4407== by 0x808A738: write_one (builtin-pack-objects.c:318)
==4407== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==4407== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4407== by 0x804B5AA: handle_internal_command (git.c:257)
==4407== by 0x804B77D: main (git.c:454)
==4407==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==4407== Syscall param write(buf) points to uninitialised byte(s)
==4407== at 0x41BBEDB: ??? (syscall-template.S:82)
==4407== by 0x80B99A0: flush (csum-file.c:17)
==4407== by 0x80B9C0D: sha1close (csum-file.c:54)
==4407== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==4407== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4407== by 0x804B5AA: handle_internal_command (git.c:257)
==4407== by 0x804B77D: main (git.c:454)
==4407== Address 0x43a0968 is 128 bytes inside a block of size 8,320 alloc'd
==4407== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4407== by 0x81081E6: xmalloc (wrapper.c:20)
==4407== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==4407== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==4407== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4407== by 0x804B5AA: handle_internal_command (git.c:257)
==4407== by 0x804B77D: main (git.c:454)
==4407== Uninitialised value was created by a heap allocation
==4407== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4407== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4407== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4407== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4407== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==4407== by 0x808A738: write_one (builtin-pack-objects.c:318)
==4407== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==4407== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4407== by 0x804B5AA: handle_internal_command (git.c:257)
==4407== by 0x804B77D: main (git.c:454)
==4407==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==4417== Syscall param write(buf) points to uninitialised byte(s)
==4417== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==4417== by 0x8107ED6: write_in_full (wrapper.c:166)
==4417== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==4417== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==4417== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==4417== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==4417== by 0x804B5AA: handle_internal_command (git.c:257)
==4417== by 0x804B77D: main (git.c:454)
==4417== Address 0xbe916338 is on thread 1's stack
==4417== Uninitialised value was created by a heap allocation
==4417== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4417== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4417== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4417== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4417== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==4417== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==4417== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==4417== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==4417== by 0x804B5AA: handle_internal_command (git.c:257)
==4417== by 0x804B77D: main (git.c:454)
==4417==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 20: push with weak ambiguity (2)
mk_test heads/master remotes/origin/master remotes/another/master &&
git push testrepo master:master &&
check_push_result $the_commit heads/master &&
check_push_result $the_first_commit remotes/origin/master remotes/another/master
* expecting success:
mk_test heads/frotz tags/frotz &&
if git push testrepo master:frotz
then
echo "Oops, should have failed"
false
else
check_push_result $the_first_commit heads/frotz tags/frotz
fi
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> frotz
To testrepo
* [new tag] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> frotz
notice: HEAD points to an unborn branch (master)
error: dst refspec frotz matches more than one.
error: failed to push some refs to 'testrepo'
notice: HEAD points to an unborn branch (master)
* ok 21: push with ambiguity
* expecting success:
mk_test heads/frotz tags/frotz &&
git branch -f frotz master &&
git push testrepo frotz &&
check_push_result $the_commit heads/frotz &&
check_push_result $the_first_commit tags/frotz
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> frotz
To testrepo
* [new tag] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> frotz
notice: HEAD points to an unborn branch (master)
==4915== Invalid read of size 4
==4915== at 0x80E6E00: copy_ref (remote.c:904)
==4915== by 0x80EA352: match_refs (remote.c:1124)
==4915== by 0x80FE553: transport_push (transport.c:1046)
==4915== by 0x808F623: push_with_options (builtin-push.c:116)
==4915== by 0x808FD69: cmd_push (builtin-push.c:187)
==4915== by 0x804B5AA: handle_internal_command (git.c:257)
==4915== by 0x804B77D: main (git.c:454)
==4915== Address 0x43530c0 is 80 bytes inside a block of size 81 alloc'd
==4915== at 0x402425F: calloc (vg_replace_malloc.c:467)
==4915== by 0x8108080: xcalloc (wrapper.c:82)
==4915== by 0x80E9D14: one_local_ref (remote.c:1626)
==4915== by 0x80E3834: do_one_ref (refs.c:555)
==4915== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==4915== by 0x80E6CF5: get_local_heads (remote.c:1637)
==4915== by 0x80FE51F: transport_push (transport.c:1033)
==4915== by 0x808F623: push_with_options (builtin-push.c:116)
==4915== by 0x808FD69: cmd_push (builtin-push.c:187)
==4915== by 0x804B5AA: handle_internal_command (git.c:257)
==4915== by 0x804B77D: main (git.c:454)
==4915==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==4935== Syscall param write(buf) points to uninitialised byte(s)
==4935== at 0x41BBEDB: ??? (syscall-template.S:82)
==4935== by 0x80B99A0: flush (csum-file.c:17)
==4935== by 0x80B9B5C: sha1flush (csum-file.c:39)
==4935== by 0x80B9BA8: sha1close (csum-file.c:48)
==4935== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==4935== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4935== by 0x804B5AA: handle_internal_command (git.c:257)
==4935== by 0x804B77D: main (git.c:454)
==4935== Address 0x439e3f5 is 341 bytes inside a block of size 8,320 alloc'd
==4935== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4935== by 0x81081E6: xmalloc (wrapper.c:20)
==4935== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==4935== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==4935== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4935== by 0x804B5AA: handle_internal_command (git.c:257)
==4935== by 0x804B77D: main (git.c:454)
==4935== Uninitialised value was created by a heap allocation
==4935== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4935== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4935== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4935== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4935== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==4935== by 0x808A738: write_one (builtin-pack-objects.c:318)
==4935== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==4935== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4935== by 0x804B5AA: handle_internal_command (git.c:257)
==4935== by 0x804B77D: main (git.c:454)
==4935==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==4935== Syscall param write(buf) points to uninitialised byte(s)
==4935== at 0x41BBEDB: ??? (syscall-template.S:82)
==4935== by 0x80B99A0: flush (csum-file.c:17)
==4935== by 0x80B9C0D: sha1close (csum-file.c:54)
==4935== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==4935== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4935== by 0x804B5AA: handle_internal_command (git.c:257)
==4935== by 0x804B77D: main (git.c:454)
==4935== Address 0x439e320 is 128 bytes inside a block of size 8,320 alloc'd
==4935== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4935== by 0x81081E6: xmalloc (wrapper.c:20)
==4935== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==4935== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==4935== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4935== by 0x804B5AA: handle_internal_command (git.c:257)
==4935== by 0x804B77D: main (git.c:454)
==4935== Uninitialised value was created by a heap allocation
==4935== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4935== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4935== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4935== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4935== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==4935== by 0x808A738: write_one (builtin-pack-objects.c:318)
==4935== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==4935== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==4935== by 0x804B5AA: handle_internal_command (git.c:257)
==4935== by 0x804B77D: main (git.c:454)
==4935==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==4945== Syscall param write(buf) points to uninitialised byte(s)
==4945== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==4945== by 0x8107ED6: write_in_full (wrapper.c:166)
==4945== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==4945== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==4945== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==4945== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==4945== by 0x804B5AA: handle_internal_command (git.c:257)
==4945== by 0x804B77D: main (git.c:454)
==4945== Address 0xbea07338 is on thread 1's stack
==4945== Uninitialised value was created by a heap allocation
==4945== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==4945== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==4945== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==4945== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==4945== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==4945== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==4945== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==4945== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==4945== by 0x804B5AA: handle_internal_command (git.c:257)
==4945== by 0x804B77D: main (git.c:454)
==4945==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 22: push with colon-less refspec (1)
mk_test heads/frotz tags/frotz &&
git branch -f frotz master &&
git push testrepo frotz &&
check_push_result $the_commit heads/frotz &&
check_push_result $the_first_commit tags/frotz
* expecting success:
mk_test heads/frotz tags/frotz &&
if git show-ref --verify -q refs/heads/frotz
then
git branch -D frotz
fi &&
git tag -f frotz &&
git push testrepo frotz &&
check_push_result $the_commit tags/frotz &&
check_push_result $the_first_commit heads/frotz
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> frotz
To testrepo
* [new tag] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> frotz
notice: HEAD points to an unborn branch (master)
Deleted branch frotz (was 9ad36e1).
Updated tag 'frotz' (was 0000000)
==5175== Syscall param write(buf) points to uninitialised byte(s)
==5175== at 0x41BBEDB: ??? (syscall-template.S:82)
==5175== by 0x80B99A0: flush (csum-file.c:17)
==5175== by 0x80B9B5C: sha1flush (csum-file.c:39)
==5175== by 0x80B9BA8: sha1close (csum-file.c:48)
==5175== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5175== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5175== by 0x804B5AA: handle_internal_command (git.c:257)
==5175== by 0x804B77D: main (git.c:454)
==5175== Address 0x439e3f5 is 341 bytes inside a block of size 8,320 alloc'd
==5175== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5175== by 0x81081E6: xmalloc (wrapper.c:20)
==5175== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5175== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5175== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5175== by 0x804B5AA: handle_internal_command (git.c:257)
==5175== by 0x804B77D: main (git.c:454)
==5175== Uninitialised value was created by a heap allocation
==5175== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5175== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5175== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5175== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5175== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5175== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5175== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5175== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5175== by 0x804B5AA: handle_internal_command (git.c:257)
==5175== by 0x804B77D: main (git.c:454)
==5175==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==5175== Syscall param write(buf) points to uninitialised byte(s)
==5175== at 0x41BBEDB: ??? (syscall-template.S:82)
==5175== by 0x80B99A0: flush (csum-file.c:17)
==5175== by 0x80B9C0D: sha1close (csum-file.c:54)
==5175== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5175== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5175== by 0x804B5AA: handle_internal_command (git.c:257)
==5175== by 0x804B77D: main (git.c:454)
==5175== Address 0x439e320 is 128 bytes inside a block of size 8,320 alloc'd
==5175== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5175== by 0x81081E6: xmalloc (wrapper.c:20)
==5175== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5175== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5175== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5175== by 0x804B5AA: handle_internal_command (git.c:257)
==5175== by 0x804B77D: main (git.c:454)
==5175== Uninitialised value was created by a heap allocation
==5175== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5175== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5175== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5175== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5175== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5175== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5175== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5175== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5175== by 0x804B5AA: handle_internal_command (git.c:257)
==5175== by 0x804B77D: main (git.c:454)
==5175==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==5188== Syscall param write(buf) points to uninitialised byte(s)
==5188== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==5188== by 0x8107ED6: write_in_full (wrapper.c:166)
==5188== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==5188== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5188== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5188== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5188== by 0x804B5AA: handle_internal_command (git.c:257)
==5188== by 0x804B77D: main (git.c:454)
==5188== Address 0xbef3d338 is on thread 1's stack
==5188== Uninitialised value was created by a heap allocation
==5188== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5188== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5188== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5188== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5188== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==5188== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5188== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5188== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5188== by 0x804B5AA: handle_internal_command (git.c:257)
==5188== by 0x804B77D: main (git.c:454)
==5188==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 23: push with colon-less refspec (2)
mk_test heads/frotz tags/frotz &&
if git show-ref --verify -q refs/heads/frotz
then
git branch -D frotz
fi &&
git tag -f frotz &&
git push testrepo frotz &&
check_push_result $the_commit tags/frotz &&
check_push_result $the_first_commit heads/frotz
* expecting success:
mk_test &&
if git show-ref --verify -q refs/tags/frotz
then
git tag -d frotz
fi &&
git branch -f frotz master &&
git push testrepo frotz &&
check_push_result $the_commit heads/frotz &&
test 1 = $( cd testrepo && git show-ref | wc -l )
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
notice: HEAD points to an unborn branch (master)
notice: No default references
Deleted tag 'frotz' (was 9ad36e1)
==5271== Invalid read of size 4
==5271== at 0x80E6E00: copy_ref (remote.c:904)
==5271== by 0x80EA352: match_refs (remote.c:1124)
==5271== by 0x80FE553: transport_push (transport.c:1046)
==5271== by 0x808F623: push_with_options (builtin-push.c:116)
==5271== by 0x808FD69: cmd_push (builtin-push.c:187)
==5271== by 0x804B5AA: handle_internal_command (git.c:257)
==5271== by 0x804B77D: main (git.c:454)
==5271== Address 0x4352fb8 is 80 bytes inside a block of size 81 alloc'd
==5271== at 0x402425F: calloc (vg_replace_malloc.c:467)
==5271== by 0x8108080: xcalloc (wrapper.c:82)
==5271== by 0x80E9D14: one_local_ref (remote.c:1626)
==5271== by 0x80E3834: do_one_ref (refs.c:555)
==5271== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==5271== by 0x80E6CF5: get_local_heads (remote.c:1637)
==5271== by 0x80FE51F: transport_push (transport.c:1033)
==5271== by 0x808F623: push_with_options (builtin-push.c:116)
==5271== by 0x808FD69: cmd_push (builtin-push.c:187)
==5271== by 0x804B5AA: handle_internal_command (git.c:257)
==5271== by 0x804B77D: main (git.c:454)
==5271==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==5295== Syscall param write(buf) points to uninitialised byte(s)
==5295== at 0x41BBEDB: ??? (syscall-template.S:82)
==5295== by 0x80B99A0: flush (csum-file.c:17)
==5295== by 0x80B9B5C: sha1flush (csum-file.c:39)
==5295== by 0x80B9BA8: sha1close (csum-file.c:48)
==5295== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5295== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5295== by 0x804B5AA: handle_internal_command (git.c:257)
==5295== by 0x804B77D: main (git.c:454)
==5295== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==5295== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5295== by 0x81081E6: xmalloc (wrapper.c:20)
==5295== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5295== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5295== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5295== by 0x804B5AA: handle_internal_command (git.c:257)
==5295== by 0x804B77D: main (git.c:454)
==5295== Uninitialised value was created by a heap allocation
==5295== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5295== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5295== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5295== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5295== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5295== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5295== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5295== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5295== by 0x804B5AA: handle_internal_command (git.c:257)
==5295== by 0x804B77D: main (git.c:454)
==5295==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==5295== Syscall param write(buf) points to uninitialised byte(s)
==5295== at 0x41BBEDB: ??? (syscall-template.S:82)
==5295== by 0x80B99A0: flush (csum-file.c:17)
==5295== by 0x80B9C0D: sha1close (csum-file.c:54)
==5295== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5295== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5295== by 0x804B5AA: handle_internal_command (git.c:257)
==5295== by 0x804B77D: main (git.c:454)
==5295== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==5295== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5295== by 0x81081E6: xmalloc (wrapper.c:20)
==5295== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5295== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5295== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5295== by 0x804B5AA: handle_internal_command (git.c:257)
==5295== by 0x804B77D: main (git.c:454)
==5295== Uninitialised value was created by a heap allocation
==5295== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5295== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5295== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5295== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5295== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5295== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5295== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5295== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5295== by 0x804B5AA: handle_internal_command (git.c:257)
==5295== by 0x804B77D: main (git.c:454)
==5295==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==5305== Syscall param write(buf) points to uninitialised byte(s)
==5305== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==5305== by 0x8107ED6: write_in_full (wrapper.c:166)
==5305== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==5305== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5305== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5305== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5305== by 0x804B5AA: handle_internal_command (git.c:257)
==5305== by 0x804B77D: main (git.c:454)
==5305== Address 0xbeedf338 is on thread 1's stack
==5305== Uninitialised value was created by a heap allocation
==5305== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5305== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5305== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5305== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5305== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==5305== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5305== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5305== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5305== by 0x804B5AA: handle_internal_command (git.c:257)
==5305== by 0x804B77D: main (git.c:454)
==5305==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 24: push with colon-less refspec (3)
mk_test &&
if git show-ref --verify -q refs/tags/frotz
then
git tag -d frotz
fi &&
git branch -f frotz master &&
git push testrepo frotz &&
check_push_result $the_commit heads/frotz &&
test 1 = $( cd testrepo && git show-ref | wc -l )
* expecting success:
mk_test &&
if git show-ref --verify -q refs/heads/frotz
then
git branch -D frotz
fi &&
git tag -f frotz &&
git push testrepo frotz &&
check_push_result $the_commit tags/frotz &&
test 1 = $( cd testrepo && git show-ref | wc -l )
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
notice: HEAD points to an unborn branch (master)
notice: No default references
Deleted branch frotz (was 9ad36e1).
Updated tag 'frotz' (was 0000000)
==5404== Syscall param write(buf) points to uninitialised byte(s)
==5404== at 0x41BBEDB: ??? (syscall-template.S:82)
==5404== by 0x80B99A0: flush (csum-file.c:17)
==5404== by 0x80B9B5C: sha1flush (csum-file.c:39)
==5404== by 0x80B9BA8: sha1close (csum-file.c:48)
==5404== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5404== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5404== by 0x804B5AA: handle_internal_command (git.c:257)
==5404== by 0x804B77D: main (git.c:454)
==5404== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==5404== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5404== by 0x81081E6: xmalloc (wrapper.c:20)
==5404== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5404== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5404== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5404== by 0x804B5AA: handle_internal_command (git.c:257)
==5404== by 0x804B77D: main (git.c:454)
==5404== Uninitialised value was created by a heap allocation
==5404== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5404== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5404== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5404== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5404== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5404== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5404== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5404== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5404== by 0x804B5AA: handle_internal_command (git.c:257)
==5404== by 0x804B77D: main (git.c:454)
==5404==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==5404== Syscall param write(buf) points to uninitialised byte(s)
==5404== at 0x41BBEDB: ??? (syscall-template.S:82)
==5404== by 0x80B99A0: flush (csum-file.c:17)
==5404== by 0x80B9C0D: sha1close (csum-file.c:54)
==5404== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5404== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5404== by 0x804B5AA: handle_internal_command (git.c:257)
==5404== by 0x804B77D: main (git.c:454)
==5404== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==5404== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5404== by 0x81081E6: xmalloc (wrapper.c:20)
==5404== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5404== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5404== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5404== by 0x804B5AA: handle_internal_command (git.c:257)
==5404== by 0x804B77D: main (git.c:454)
==5404== Uninitialised value was created by a heap allocation
==5404== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5404== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5404== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5404== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5404== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5404== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5404== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5404== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5404== by 0x804B5AA: handle_internal_command (git.c:257)
==5404== by 0x804B77D: main (git.c:454)
==5404==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==5414== Syscall param write(buf) points to uninitialised byte(s)
==5414== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==5414== by 0x8107ED6: write_in_full (wrapper.c:166)
==5414== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==5414== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5414== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5414== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5414== by 0x804B5AA: handle_internal_command (git.c:257)
==5414== by 0x804B77D: main (git.c:454)
==5414== Address 0xbe8aa338 is on thread 1's stack
==5414== Uninitialised value was created by a heap allocation
==5414== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5414== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5414== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5414== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5414== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==5414== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5414== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5414== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5414== by 0x804B5AA: handle_internal_command (git.c:257)
==5414== by 0x804B77D: main (git.c:454)
==5414==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 25: push with colon-less refspec (4)
mk_test &&
if git show-ref --verify -q refs/heads/frotz
then
git branch -D frotz
fi &&
git tag -f frotz &&
git push testrepo frotz &&
check_push_result $the_commit tags/frotz &&
test 1 = $( cd testrepo && git show-ref | wc -l )
* expecting success:
mk_test &&
git push testrepo master:branch &&
check_push_result $the_commit heads/branch
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
notice: HEAD points to an unborn branch (master)
notice: No default references
==5466== Invalid read of size 4
==5466== at 0x80E6E00: copy_ref (remote.c:904)
==5466== by 0x80EA352: match_refs (remote.c:1124)
==5466== by 0x80FE553: transport_push (transport.c:1046)
==5466== by 0x808F623: push_with_options (builtin-push.c:116)
==5466== by 0x808FD69: cmd_push (builtin-push.c:187)
==5466== by 0x804B5AA: handle_internal_command (git.c:257)
==5466== by 0x804B77D: main (git.c:454)
==5466== Address 0x4352fb0 is 80 bytes inside a block of size 82 alloc'd
==5466== at 0x402425F: calloc (vg_replace_malloc.c:467)
==5466== by 0x8108080: xcalloc (wrapper.c:82)
==5466== by 0x80E9D14: one_local_ref (remote.c:1626)
==5466== by 0x80E3834: do_one_ref (refs.c:555)
==5466== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==5466== by 0x80E6CF5: get_local_heads (remote.c:1637)
==5466== by 0x80FE51F: transport_push (transport.c:1033)
==5466== by 0x808F623: push_with_options (builtin-push.c:116)
==5466== by 0x808FD69: cmd_push (builtin-push.c:187)
==5466== by 0x804B5AA: handle_internal_command (git.c:257)
==5466== by 0x804B77D: main (git.c:454)
==5466==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==5486== Syscall param write(buf) points to uninitialised byte(s)
==5486== at 0x41BBEDB: ??? (syscall-template.S:82)
==5486== by 0x80B99A0: flush (csum-file.c:17)
==5486== by 0x80B9B5C: sha1flush (csum-file.c:39)
==5486== by 0x80B9BA8: sha1close (csum-file.c:48)
==5486== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5486== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5486== by 0x804B5AA: handle_internal_command (git.c:257)
==5486== by 0x804B77D: main (git.c:454)
==5486== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==5486== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5486== by 0x81081E6: xmalloc (wrapper.c:20)
==5486== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5486== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5486== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5486== by 0x804B5AA: handle_internal_command (git.c:257)
==5486== by 0x804B77D: main (git.c:454)
==5486== Uninitialised value was created by a heap allocation
==5486== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5486== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5486== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5486== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5486== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5486== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5486== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5486== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5486== by 0x804B5AA: handle_internal_command (git.c:257)
==5486== by 0x804B77D: main (git.c:454)
==5486==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==5486== Syscall param write(buf) points to uninitialised byte(s)
==5486== at 0x41BBEDB: ??? (syscall-template.S:82)
==5486== by 0x80B99A0: flush (csum-file.c:17)
==5486== by 0x80B9C0D: sha1close (csum-file.c:54)
==5486== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5486== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5486== by 0x804B5AA: handle_internal_command (git.c:257)
==5486== by 0x804B77D: main (git.c:454)
==5486== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==5486== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5486== by 0x81081E6: xmalloc (wrapper.c:20)
==5486== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5486== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5486== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5486== by 0x804B5AA: handle_internal_command (git.c:257)
==5486== by 0x804B77D: main (git.c:454)
==5486== Uninitialised value was created by a heap allocation
==5486== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5486== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5486== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5486== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5486== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5486== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5486== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5486== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5486== by 0x804B5AA: handle_internal_command (git.c:257)
==5486== by 0x804B77D: main (git.c:454)
==5486==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==5496== Syscall param write(buf) points to uninitialised byte(s)
==5496== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==5496== by 0x8107ED6: write_in_full (wrapper.c:166)
==5496== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==5496== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5496== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5496== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5496== by 0x804B5AA: handle_internal_command (git.c:257)
==5496== by 0x804B77D: main (git.c:454)
==5496== Address 0xbecd1338 is on thread 1's stack
==5496== Uninitialised value was created by a heap allocation
==5496== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5496== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5496== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5496== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5496== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==5496== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5496== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5496== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5496== by 0x804B5AA: handle_internal_command (git.c:257)
==5496== by 0x804B77D: main (git.c:454)
==5496==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 26: push head with non-existant, incomplete dest
mk_test &&
git push testrepo master:branch &&
check_push_result $the_commit heads/branch
* expecting success:
mk_test &&
git tag -f v1.0 &&
git push testrepo v1.0:tag &&
check_push_result $the_commit tags/tag
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
notice: HEAD points to an unborn branch (master)
notice: No default references
Updated tag 'v1.0' (was 0000000)
==5560== Invalid read of size 4
==5560== at 0x80E6E00: copy_ref (remote.c:904)
==5560== by 0x80EA352: match_refs (remote.c:1124)
==5560== by 0x80FE553: transport_push (transport.c:1046)
==5560== by 0x808F623: push_with_options (builtin-push.c:116)
==5560== by 0x808FD69: cmd_push (builtin-push.c:187)
==5560== by 0x804B5AA: handle_internal_command (git.c:257)
==5560== by 0x804B77D: main (git.c:454)
==5560== Address 0x43531ac is 76 bytes inside a block of size 79 alloc'd
==5560== at 0x402425F: calloc (vg_replace_malloc.c:467)
==5560== by 0x8108080: xcalloc (wrapper.c:82)
==5560== by 0x80E9D14: one_local_ref (remote.c:1626)
==5560== by 0x80E3834: do_one_ref (refs.c:555)
==5560== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==5560== by 0x80E6CF5: get_local_heads (remote.c:1637)
==5560== by 0x80FE51F: transport_push (transport.c:1033)
==5560== by 0x808F623: push_with_options (builtin-push.c:116)
==5560== by 0x808FD69: cmd_push (builtin-push.c:187)
==5560== by 0x804B5AA: handle_internal_command (git.c:257)
==5560== by 0x804B77D: main (git.c:454)
==5560==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==5592== Syscall param write(buf) points to uninitialised byte(s)
==5592== at 0x41BBEDB: ??? (syscall-template.S:82)
==5592== by 0x80B99A0: flush (csum-file.c:17)
==5592== by 0x80B9B5C: sha1flush (csum-file.c:39)
==5592== by 0x80B9BA8: sha1close (csum-file.c:48)
==5592== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5592== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5592== by 0x804B5AA: handle_internal_command (git.c:257)
==5592== by 0x804B77D: main (git.c:454)
==5592== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==5592== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5592== by 0x81081E6: xmalloc (wrapper.c:20)
==5592== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5592== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5592== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5592== by 0x804B5AA: handle_internal_command (git.c:257)
==5592== by 0x804B77D: main (git.c:454)
==5592== Uninitialised value was created by a heap allocation
==5592== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5592== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5592== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5592== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5592== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5592== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5592== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5592== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5592== by 0x804B5AA: handle_internal_command (git.c:257)
==5592== by 0x804B77D: main (git.c:454)
==5592==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==5592== Syscall param write(buf) points to uninitialised byte(s)
==5592== at 0x41BBEDB: ??? (syscall-template.S:82)
==5592== by 0x80B99A0: flush (csum-file.c:17)
==5592== by 0x80B9C0D: sha1close (csum-file.c:54)
==5592== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5592== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5592== by 0x804B5AA: handle_internal_command (git.c:257)
==5592== by 0x804B77D: main (git.c:454)
==5592== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==5592== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5592== by 0x81081E6: xmalloc (wrapper.c:20)
==5592== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5592== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5592== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5592== by 0x804B5AA: handle_internal_command (git.c:257)
==5592== by 0x804B77D: main (git.c:454)
==5592== Uninitialised value was created by a heap allocation
==5592== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5592== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5592== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5592== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5592== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5592== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5592== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5592== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5592== by 0x804B5AA: handle_internal_command (git.c:257)
==5592== by 0x804B77D: main (git.c:454)
==5592==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==5602== Syscall param write(buf) points to uninitialised byte(s)
==5602== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==5602== by 0x8107ED6: write_in_full (wrapper.c:166)
==5602== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==5602== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5602== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5602== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5602== by 0x804B5AA: handle_internal_command (git.c:257)
==5602== by 0x804B77D: main (git.c:454)
==5602== Address 0xbed4d338 is on thread 1's stack
==5602== Uninitialised value was created by a heap allocation
==5602== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5602== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5602== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5602== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5602== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==5602== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5602== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5602== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5602== by 0x804B5AA: handle_internal_command (git.c:257)
==5602== by 0x804B77D: main (git.c:454)
==5602==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 27: push tag with non-existant, incomplete dest
mk_test &&
git tag -f v1.0 &&
git push testrepo v1.0:tag &&
check_push_result $the_commit tags/tag
* expecting success:
mk_test &&
test_must_fail git push testrepo `git rev-parse master`:foo
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
notice: HEAD points to an unborn branch (master)
notice: No default references
error: unable to push to unqualified destination: foo
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'testrepo'
* ok 28: push sha1 with non-existant, incomplete dest
* expecting success:
mk_test &&
test_must_fail git push testrepo master^:branch
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
notice: HEAD points to an unborn branch (master)
notice: No default references
error: unable to push to unqualified destination: branch
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'testrepo'
* ok 29: push ref expression with non-existant, incomplete dest
* expecting success:
mk_test heads/master &&
git checkout master &&
git push testrepo HEAD &&
check_push_result $the_commit heads/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Already on 'master'
==5870== Syscall param write(buf) points to uninitialised byte(s)
==5870== at 0x41BBEDB: ??? (syscall-template.S:82)
==5870== by 0x80B99A0: flush (csum-file.c:17)
==5870== by 0x80B9B5C: sha1flush (csum-file.c:39)
==5870== by 0x80B9BA8: sha1close (csum-file.c:48)
==5870== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5870== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5870== by 0x804B5AA: handle_internal_command (git.c:257)
==5870== by 0x804B77D: main (git.c:454)
==5870== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==5870== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5870== by 0x81081E6: xmalloc (wrapper.c:20)
==5870== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5870== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5870== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5870== by 0x804B5AA: handle_internal_command (git.c:257)
==5870== by 0x804B77D: main (git.c:454)
==5870== Uninitialised value was created by a heap allocation
==5870== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5870== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5870== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5870== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5870== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5870== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5870== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5870== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5870== by 0x804B5AA: handle_internal_command (git.c:257)
==5870== by 0x804B77D: main (git.c:454)
==5870==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==5870== Syscall param write(buf) points to uninitialised byte(s)
==5870== at 0x41BBEDB: ??? (syscall-template.S:82)
==5870== by 0x80B99A0: flush (csum-file.c:17)
==5870== by 0x80B9C0D: sha1close (csum-file.c:54)
==5870== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==5870== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5870== by 0x804B5AA: handle_internal_command (git.c:257)
==5870== by 0x804B77D: main (git.c:454)
==5870== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==5870== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5870== by 0x81081E6: xmalloc (wrapper.c:20)
==5870== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==5870== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==5870== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5870== by 0x804B5AA: handle_internal_command (git.c:257)
==5870== by 0x804B77D: main (git.c:454)
==5870== Uninitialised value was created by a heap allocation
==5870== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5870== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5870== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5870== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5870== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==5870== by 0x808A738: write_one (builtin-pack-objects.c:318)
==5870== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==5870== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==5870== by 0x804B5AA: handle_internal_command (git.c:257)
==5870== by 0x804B77D: main (git.c:454)
==5870==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==5880== Syscall param write(buf) points to uninitialised byte(s)
==5880== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==5880== by 0x8107ED6: write_in_full (wrapper.c:166)
==5880== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==5880== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5880== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5880== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5880== by 0x804B5AA: handle_internal_command (git.c:257)
==5880== by 0x804B77D: main (git.c:454)
==5880== Address 0xbeb4f338 is on thread 1's stack
==5880== Uninitialised value was created by a heap allocation
==5880== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5880== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==5880== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==5880== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==5880== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==5880== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==5880== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==5880== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==5880== by 0x804B5AA: handle_internal_command (git.c:257)
==5880== by 0x804B77D: main (git.c:454)
==5880==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 30: push with HEAD
mk_test heads/master &&
git checkout master &&
git push testrepo HEAD &&
check_push_result $the_commit heads/master
* expecting success:
mk_test heads/master &&
git checkout -b local master &&
git push testrepo HEAD &&
check_push_result $the_commit heads/local
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Switched to a new branch 'local'
==6018== Syscall param write(buf) points to uninitialised byte(s)
==6018== at 0x41BBEDB: ??? (syscall-template.S:82)
==6018== by 0x80B99A0: flush (csum-file.c:17)
==6018== by 0x80B9B5C: sha1flush (csum-file.c:39)
==6018== by 0x80B9BA8: sha1close (csum-file.c:48)
==6018== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6018== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6018== by 0x804B5AA: handle_internal_command (git.c:257)
==6018== by 0x804B77D: main (git.c:454)
==6018== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==6018== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6018== by 0x81081E6: xmalloc (wrapper.c:20)
==6018== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6018== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6018== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6018== by 0x804B5AA: handle_internal_command (git.c:257)
==6018== by 0x804B77D: main (git.c:454)
==6018== Uninitialised value was created by a heap allocation
==6018== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6018== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6018== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6018== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6018== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6018== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6018== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6018== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6018== by 0x804B5AA: handle_internal_command (git.c:257)
==6018== by 0x804B77D: main (git.c:454)
==6018==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==6018== Syscall param write(buf) points to uninitialised byte(s)
==6018== at 0x41BBEDB: ??? (syscall-template.S:82)
==6018== by 0x80B99A0: flush (csum-file.c:17)
==6018== by 0x80B9C0D: sha1close (csum-file.c:54)
==6018== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6018== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6018== by 0x804B5AA: handle_internal_command (git.c:257)
==6018== by 0x804B77D: main (git.c:454)
==6018== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==6018== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6018== by 0x81081E6: xmalloc (wrapper.c:20)
==6018== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6018== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6018== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6018== by 0x804B5AA: handle_internal_command (git.c:257)
==6018== by 0x804B77D: main (git.c:454)
==6018== Uninitialised value was created by a heap allocation
==6018== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6018== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6018== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6018== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6018== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6018== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6018== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6018== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6018== by 0x804B5AA: handle_internal_command (git.c:257)
==6018== by 0x804B77D: main (git.c:454)
==6018==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==6028== Syscall param write(buf) points to uninitialised byte(s)
==6028== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==6028== by 0x8107ED6: write_in_full (wrapper.c:166)
==6028== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==6028== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6028== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6028== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6028== by 0x804B5AA: handle_internal_command (git.c:257)
==6028== by 0x804B77D: main (git.c:454)
==6028== Address 0xbe9de338 is on thread 1's stack
==6028== Uninitialised value was created by a heap allocation
==6028== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6028== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6028== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6028== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6028== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==6028== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6028== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6028== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6028== by 0x804B5AA: handle_internal_command (git.c:257)
==6028== by 0x804B77D: main (git.c:454)
==6028==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 31: push with HEAD nonexisting at remote
mk_test heads/master &&
git checkout -b local master &&
git push testrepo HEAD &&
check_push_result $the_commit heads/local
* expecting success:
mk_test heads/master &&
git checkout master &&
git branch -D local &&
git checkout -b local &&
git push testrepo master local &&
check_push_result $the_commit heads/master &&
check_push_result $the_commit heads/local &&
# Without force rewinding should fail
git reset --hard HEAD^ &&
test_must_fail git push testrepo HEAD &&
check_push_result $the_commit heads/local &&
# With force rewinding should succeed
git push testrepo +HEAD &&
check_push_result $the_first_commit heads/local
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Switched to branch 'master'
Deleted branch local (was 9ad36e1).
Switched to a new branch 'local'
==6165== Invalid read of size 4
==6165== at 0x80E6E00: copy_ref (remote.c:904)
==6165== by 0x80EA352: match_refs (remote.c:1124)
==6165== by 0x80FE553: transport_push (transport.c:1046)
==6165== by 0x808F623: push_with_options (builtin-push.c:116)
==6165== by 0x808FD69: cmd_push (builtin-push.c:187)
==6165== by 0x804B5AA: handle_internal_command (git.c:257)
==6165== by 0x804B77D: main (git.c:454)
==6165== Address 0x43531e0 is 80 bytes inside a block of size 82 alloc'd
==6165== at 0x402425F: calloc (vg_replace_malloc.c:467)
==6165== by 0x8108080: xcalloc (wrapper.c:82)
==6165== by 0x80E9D14: one_local_ref (remote.c:1626)
==6165== by 0x80E3834: do_one_ref (refs.c:555)
==6165== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==6165== by 0x80E6CF5: get_local_heads (remote.c:1637)
==6165== by 0x80FE51F: transport_push (transport.c:1033)
==6165== by 0x808F623: push_with_options (builtin-push.c:116)
==6165== by 0x808FD69: cmd_push (builtin-push.c:187)
==6165== by 0x804B5AA: handle_internal_command (git.c:257)
==6165== by 0x804B77D: main (git.c:454)
==6165==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==6185== Syscall param write(buf) points to uninitialised byte(s)
==6185== at 0x41BBEDB: ??? (syscall-template.S:82)
==6185== by 0x80B99A0: flush (csum-file.c:17)
==6185== by 0x80B9B5C: sha1flush (csum-file.c:39)
==6185== by 0x80B9BA8: sha1close (csum-file.c:48)
==6185== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6185== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6185== by 0x804B5AA: handle_internal_command (git.c:257)
==6185== by 0x804B77D: main (git.c:454)
==6185== Address 0x439e425 is 341 bytes inside a block of size 8,320 alloc'd
==6185== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6185== by 0x81081E6: xmalloc (wrapper.c:20)
==6185== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6185== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6185== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6185== by 0x804B5AA: handle_internal_command (git.c:257)
==6185== by 0x804B77D: main (git.c:454)
==6185== Uninitialised value was created by a heap allocation
==6185== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6185== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6185== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6185== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6185== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6185== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6185== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6185== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6185== by 0x804B5AA: handle_internal_command (git.c:257)
==6185== by 0x804B77D: main (git.c:454)
==6185==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==6185== Syscall param write(buf) points to uninitialised byte(s)
==6185== at 0x41BBEDB: ??? (syscall-template.S:82)
==6185== by 0x80B99A0: flush (csum-file.c:17)
==6185== by 0x80B9C0D: sha1close (csum-file.c:54)
==6185== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6185== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6185== by 0x804B5AA: handle_internal_command (git.c:257)
==6185== by 0x804B77D: main (git.c:454)
==6185== Address 0x439e350 is 128 bytes inside a block of size 8,320 alloc'd
==6185== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6185== by 0x81081E6: xmalloc (wrapper.c:20)
==6185== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6185== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6185== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6185== by 0x804B5AA: handle_internal_command (git.c:257)
==6185== by 0x804B77D: main (git.c:454)
==6185== Uninitialised value was created by a heap allocation
==6185== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6185== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6185== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6185== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6185== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6185== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6185== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6185== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6185== by 0x804B5AA: handle_internal_command (git.c:257)
==6185== by 0x804B77D: main (git.c:454)
==6185==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==6195== Syscall param write(buf) points to uninitialised byte(s)
==6195== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==6195== by 0x8107ED6: write_in_full (wrapper.c:166)
==6195== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==6195== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6195== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6195== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6195== by 0x804B5AA: handle_internal_command (git.c:257)
==6195== by 0x804B77D: main (git.c:454)
==6195== Address 0xbe9a1338 is on thread 1's stack
==6195== Uninitialised value was created by a heap allocation
==6195== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6195== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6195== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6195== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6195== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==6195== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6195== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6195== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6195== by 0x804B5AA: handle_internal_command (git.c:257)
==6195== by 0x804B77D: main (git.c:454)
==6195==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 32: push with +HEAD
mk_test heads/master &&
git checkout master &&
git branch -D local &&
git checkout -b local &&
git push testrepo master local &&
check_push_result $the_commit heads/master &&
check_push_result $the_commit heads/local &&
# Without force rewinding should fail
git reset --hard HEAD^ &&
test_must_fail git push testrepo HEAD &&
check_push_result $the_commit heads/local &&
# With force rewinding should succeed
git push testrepo +HEAD &&
check_push_result $the_first_commit heads/local
* expecting success:
mk_test &&
git checkout master &&
git push testrepo HEAD:branch &&
check_push_result $the_commit heads/branch
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
notice: HEAD points to an unborn branch (master)
notice: No default references
Switched to branch 'master'
==6279== Syscall param write(buf) points to uninitialised byte(s)
==6279== at 0x41BBEDB: ??? (syscall-template.S:82)
==6279== by 0x80B99A0: flush (csum-file.c:17)
==6279== by 0x80B9B5C: sha1flush (csum-file.c:39)
==6279== by 0x80B9BA8: sha1close (csum-file.c:48)
==6279== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6279== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6279== by 0x804B5AA: handle_internal_command (git.c:257)
==6279== by 0x804B77D: main (git.c:454)
==6279== Address 0x43a8ce3 is 467 bytes inside a block of size 8,320 alloc'd
==6279== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6279== by 0x81081E6: xmalloc (wrapper.c:20)
==6279== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6279== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6279== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6279== by 0x804B5AA: handle_internal_command (git.c:257)
==6279== by 0x804B77D: main (git.c:454)
==6279== Uninitialised value was created by a heap allocation
==6279== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6279== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6279== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6279== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6279== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6279== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6279== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6279== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6279== by 0x804B5AA: handle_internal_command (git.c:257)
==6279== by 0x804B77D: main (git.c:454)
==6279==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==6279== Syscall param write(buf) points to uninitialised byte(s)
==6279== at 0x41BBEDB: ??? (syscall-template.S:82)
==6279== by 0x80B99A0: flush (csum-file.c:17)
==6279== by 0x80B9C0D: sha1close (csum-file.c:54)
==6279== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6279== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6279== by 0x804B5AA: handle_internal_command (git.c:257)
==6279== by 0x804B77D: main (git.c:454)
==6279== Address 0x43a8b90 is 128 bytes inside a block of size 8,320 alloc'd
==6279== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6279== by 0x81081E6: xmalloc (wrapper.c:20)
==6279== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6279== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6279== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6279== by 0x804B5AA: handle_internal_command (git.c:257)
==6279== by 0x804B77D: main (git.c:454)
==6279== Uninitialised value was created by a heap allocation
==6279== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6279== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6279== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6279== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6279== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6279== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6279== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6279== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6279== by 0x804B5AA: handle_internal_command (git.c:257)
==6279== by 0x804B77D: main (git.c:454)
==6279==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==6289== Syscall param write(buf) points to uninitialised byte(s)
==6289== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==6289== by 0x8107ED6: write_in_full (wrapper.c:166)
==6289== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==6289== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6289== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6289== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6289== by 0x804B5AA: handle_internal_command (git.c:257)
==6289== by 0x804B77D: main (git.c:454)
==6289== Address 0xbe8e1338 is on thread 1's stack
==6289== Uninitialised value was created by a heap allocation
==6289== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6289== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6289== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6289== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6289== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==6289== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6289== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6289== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6289== by 0x804B5AA: handle_internal_command (git.c:257)
==6289== by 0x804B77D: main (git.c:454)
==6289==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 33: push HEAD with non-existant, incomplete dest
mk_test &&
git checkout master &&
git push testrepo HEAD:branch &&
check_push_result $the_commit heads/branch
* expecting success:
mk_test heads/local &&
git checkout master &&
git branch -f local $the_commit &&
(
cd testrepo &&
git checkout local &&
git reset --hard $the_first_commit
) &&
git config remote.there.url testrepo &&
git config remote.there.push HEAD &&
git config branch.master.remote there &&
git push &&
check_push_result $the_commit heads/master &&
check_push_result $the_first_commit heads/local
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> local
notice: HEAD points to an unborn branch (master)
Already on 'master'
Switched to branch 'local'
HEAD is now at b9c09d6 repo
==6493== Syscall param write(buf) points to uninitialised byte(s)
==6493== at 0x41BBEDB: ??? (syscall-template.S:82)
==6493== by 0x80B99A0: flush (csum-file.c:17)
==6493== by 0x80B9B5C: sha1flush (csum-file.c:39)
==6493== by 0x80B9BA8: sha1close (csum-file.c:48)
==6493== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6493== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6493== by 0x804B5AA: handle_internal_command (git.c:257)
==6493== by 0x804B77D: main (git.c:454)
==6493== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==6493== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6493== by 0x81081E6: xmalloc (wrapper.c:20)
==6493== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6493== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6493== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6493== by 0x804B5AA: handle_internal_command (git.c:257)
==6493== by 0x804B77D: main (git.c:454)
==6493== Uninitialised value was created by a heap allocation
==6493== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6493== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6493== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6493== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6493== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6493== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6493== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6493== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6493== by 0x804B5AA: handle_internal_command (git.c:257)
==6493== by 0x804B77D: main (git.c:454)
==6493==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==6493== Syscall param write(buf) points to uninitialised byte(s)
==6493== at 0x41BBEDB: ??? (syscall-template.S:82)
==6493== by 0x80B99A0: flush (csum-file.c:17)
==6493== by 0x80B9C0D: sha1close (csum-file.c:54)
==6493== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6493== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6493== by 0x804B5AA: handle_internal_command (git.c:257)
==6493== by 0x804B77D: main (git.c:454)
==6493== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==6493== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6493== by 0x81081E6: xmalloc (wrapper.c:20)
==6493== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6493== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6493== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6493== by 0x804B5AA: handle_internal_command (git.c:257)
==6493== by 0x804B77D: main (git.c:454)
==6493== Uninitialised value was created by a heap allocation
==6493== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6493== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6493== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6493== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6493== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6493== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6493== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6493== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6493== by 0x804B5AA: handle_internal_command (git.c:257)
==6493== by 0x804B77D: main (git.c:454)
==6493==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==6503== Syscall param write(buf) points to uninitialised byte(s)
==6503== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==6503== by 0x8107ED6: write_in_full (wrapper.c:166)
==6503== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==6503== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6503== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6503== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6503== by 0x804B5AA: handle_internal_command (git.c:257)
==6503== by 0x804B77D: main (git.c:454)
==6503== Address 0xbe957338 is on thread 1's stack
==6503== Uninitialised value was created by a heap allocation
==6503== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6503== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6503== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6503== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6503== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==6503== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6503== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6503== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6503== by 0x804B5AA: handle_internal_command (git.c:257)
==6503== by 0x804B77D: main (git.c:454)
==6503==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 34: push with config remote.*.push = HEAD
mk_test heads/local &&
git checkout master &&
git branch -f local $the_commit &&
(
cd testrepo &&
git checkout local &&
git reset --hard $the_first_commit
) &&
git config remote.there.url testrepo &&
git config remote.there.push HEAD &&
git config branch.master.remote there &&
git push &&
check_push_result $the_commit heads/master &&
check_push_result $the_first_commit heads/local
* expecting success:
mk_test heads/master &&
git checkout master &&
git config remote.there.url test2repo &&
git config remote.there.pushurl testrepo &&
git push there &&
check_push_result $the_commit heads/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Already on 'master'
==6657== Invalid read of size 4
==6657== at 0x80E6E00: copy_ref (remote.c:904)
==6657== by 0x80EA2D5: match_refs (remote.c:1240)
==6657== by 0x80FE553: transport_push (transport.c:1046)
==6657== by 0x808F623: push_with_options (builtin-push.c:116)
==6657== by 0x808FD69: cmd_push (builtin-push.c:187)
==6657== by 0x804B5AA: handle_internal_command (git.c:257)
==6657== by 0x804B77D: main (git.c:454)
==6657== Address 0x4352f90 is 80 bytes inside a block of size 82 alloc'd
==6657== at 0x402425F: calloc (vg_replace_malloc.c:467)
==6657== by 0x8108080: xcalloc (wrapper.c:82)
==6657== by 0x80E9D14: one_local_ref (remote.c:1626)
==6657== by 0x80E3834: do_one_ref (refs.c:555)
==6657== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==6657== by 0x80E6CF5: get_local_heads (remote.c:1637)
==6657== by 0x80FE51F: transport_push (transport.c:1033)
==6657== by 0x808F623: push_with_options (builtin-push.c:116)
==6657== by 0x808FD69: cmd_push (builtin-push.c:187)
==6657== by 0x804B5AA: handle_internal_command (git.c:257)
==6657== by 0x804B77D: main (git.c:454)
==6657==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==6677== Syscall param write(buf) points to uninitialised byte(s)
==6677== at 0x41BBEDB: ??? (syscall-template.S:82)
==6677== by 0x80B99A0: flush (csum-file.c:17)
==6677== by 0x80B9B5C: sha1flush (csum-file.c:39)
==6677== by 0x80B9BA8: sha1close (csum-file.c:48)
==6677== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6677== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6677== by 0x804B5AA: handle_internal_command (git.c:257)
==6677== by 0x804B77D: main (git.c:454)
==6677== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==6677== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6677== by 0x81081E6: xmalloc (wrapper.c:20)
==6677== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6677== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6677== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6677== by 0x804B5AA: handle_internal_command (git.c:257)
==6677== by 0x804B77D: main (git.c:454)
==6677== Uninitialised value was created by a heap allocation
==6677== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6677== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6677== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6677== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6677== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6677== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6677== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6677== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6677== by 0x804B5AA: handle_internal_command (git.c:257)
==6677== by 0x804B77D: main (git.c:454)
==6677==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==6677== Syscall param write(buf) points to uninitialised byte(s)
==6677== at 0x41BBEDB: ??? (syscall-template.S:82)
==6677== by 0x80B99A0: flush (csum-file.c:17)
==6677== by 0x80B9C0D: sha1close (csum-file.c:54)
==6677== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==6677== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6677== by 0x804B5AA: handle_internal_command (git.c:257)
==6677== by 0x804B77D: main (git.c:454)
==6677== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==6677== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6677== by 0x81081E6: xmalloc (wrapper.c:20)
==6677== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==6677== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==6677== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6677== by 0x804B5AA: handle_internal_command (git.c:257)
==6677== by 0x804B77D: main (git.c:454)
==6677== Uninitialised value was created by a heap allocation
==6677== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6677== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6677== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6677== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6677== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==6677== by 0x808A738: write_one (builtin-pack-objects.c:318)
==6677== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==6677== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==6677== by 0x804B5AA: handle_internal_command (git.c:257)
==6677== by 0x804B77D: main (git.c:454)
==6677==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==6687== Syscall param write(buf) points to uninitialised byte(s)
==6687== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==6687== by 0x8107ED6: write_in_full (wrapper.c:166)
==6687== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==6687== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6687== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6687== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6687== by 0x804B5AA: handle_internal_command (git.c:257)
==6687== by 0x804B77D: main (git.c:454)
==6687== Address 0xbe94f338 is on thread 1's stack
==6687== Uninitialised value was created by a heap allocation
==6687== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6687== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==6687== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==6687== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==6687== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==6687== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==6687== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==6687== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==6687== by 0x804B5AA: handle_internal_command (git.c:257)
==6687== by 0x804B77D: main (git.c:454)
==6687==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 35: push with config remote.*.pushurl
mk_test heads/master &&
git checkout master &&
git config remote.there.url test2repo &&
git config remote.there.pushurl testrepo &&
git push there &&
check_push_result $the_commit heads/master
* expecting success:
mk_test heads/master &&
(cd testrepo &&
old_commit=$(git show-ref -s --verify refs/heads/master)) &&
git push --dry-run testrepo &&
check_push_result $old_commit heads/master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
==6816== Invalid read of size 4
==6816== at 0x80E6E00: copy_ref (remote.c:904)
==6816== by 0x80EA2D5: match_refs (remote.c:1240)
==6816== by 0x80FE553: transport_push (transport.c:1046)
==6816== by 0x808F623: push_with_options (builtin-push.c:116)
==6816== by 0x808FD69: cmd_push (builtin-push.c:187)
==6816== by 0x804B5AA: handle_internal_command (git.c:257)
==6816== by 0x804B77D: main (git.c:454)
==6816== Address 0x43531a8 is 80 bytes inside a block of size 82 alloc'd
==6816== at 0x402425F: calloc (vg_replace_malloc.c:467)
==6816== by 0x8108080: xcalloc (wrapper.c:82)
==6816== by 0x80E9D14: one_local_ref (remote.c:1626)
==6816== by 0x80E3834: do_one_ref (refs.c:555)
==6816== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==6816== by 0x80E6CF5: get_local_heads (remote.c:1637)
==6816== by 0x80FE51F: transport_push (transport.c:1033)
==6816== by 0x808F623: push_with_options (builtin-push.c:116)
==6816== by 0x808FD69: cmd_push (builtin-push.c:187)
==6816== by 0x804B5AA: handle_internal_command (git.c:257)
==6816== by 0x804B77D: main (git.c:454)
==6816==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
To testrepo
b9c09d6..9ad36e1 master -> master
* FAIL 36: push with dry-run
mk_test heads/master &&
(cd testrepo &&
old_commit=$(git show-ref -s --verify refs/heads/master)) &&
git push --dry-run testrepo &&
check_push_result $old_commit heads/master
* expecting success:
mk_test heads/master &&
mk_child child &&
(cd child &&
git pull .. master &&
git push &&
test $(git rev-parse master) = $(git rev-parse remotes/origin/master))
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/child/.git/
==6930== Invalid read of size 4
==6930== at 0x80E6E00: copy_ref (remote.c:904)
==6930== by 0x80E7949: get_fetch_map (remote.c:1355)
==6930== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==6930== by 0x8060741: cmd_clone (builtin-clone.c:515)
==6930== by 0x804B5AA: handle_internal_command (git.c:257)
==6930== by 0x804B77D: main (git.c:454)
==6930== Address 0x4383650 is 80 bytes inside a block of size 82 alloc'd
==6930== at 0x402425F: calloc (vg_replace_malloc.c:467)
==6930== by 0x8108080: xcalloc (wrapper.c:82)
==6930== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==6930== by 0x80B85A1: get_remote_heads (connect.c:96)
==6930== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==6930== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==6930== by 0x806072A: cmd_clone (builtin-clone.c:304)
==6930== by 0x804B5AA: handle_internal_command (git.c:257)
==6930== by 0x804B77D: main (git.c:454)
==6930==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:wanted_peer_refs
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==6930== Invalid read of size 4
==6930== at 0x80E6E00: copy_ref (remote.c:904)
==6930== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==6930== by 0x8060111: cmd_clone (builtin-clone.c:555)
==6930== by 0x804B5AA: handle_internal_command (git.c:257)
==6930== by 0x804B77D: main (git.c:454)
==6930== Address 0x4383728 is 80 bytes inside a block of size 82 alloc'd
==6930== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==6930== by 0x81081E6: xmalloc (wrapper.c:20)
==6930== by 0x80E6E1A: copy_ref (remote.c:905)
==6930== by 0x80E7949: get_fetch_map (remote.c:1355)
==6930== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==6930== by 0x8060741: cmd_clone (builtin-clone.c:515)
==6930== by 0x804B5AA: handle_internal_command (git.c:257)
==6930== by 0x804B77D: main (git.c:454)
==6930==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==6930== Invalid read of size 4
==6930== at 0x80E6E00: copy_ref (remote.c:904)
==6930== by 0x80E6E62: copy_ref (remote.c:910)
==6930== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==6930== by 0x8060111: cmd_clone (builtin-clone.c:555)
==6930== by 0x804B5AA: handle_internal_command (git.c:257)
==6930== by 0x804B77D: main (git.c:454)
==6930== Address 0x43837b8 is 88 bytes inside a block of size 91 alloc'd
==6930== at 0x402425F: calloc (vg_replace_malloc.c:467)
==6930== by 0x8108080: xcalloc (wrapper.c:82)
==6930== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==6930== by 0x80E7956: get_fetch_map (remote.c:1357)
==6930== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==6930== by 0x8060741: cmd_clone (builtin-clone.c:515)
==6930== by 0x804B5AA: handle_internal_command (git.c:257)
==6930== by 0x804B77D: main (git.c:454)
==6930==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
* FAIL 37: push updates local refs
mk_test heads/master &&
mk_child child &&
(cd child &&
git pull .. master &&
git push &&
test $(git rev-parse master) = $(git rev-parse remotes/origin/master))
* expecting success:
mk_test heads/master &&
mk_child child1 &&
mk_child child2 &&
(cd child1 && git pull .. master && git push) &&
(cd child2 &&
git pull ../child1 master &&
git push &&
test $(git rev-parse master) = $(git rev-parse remotes/origin/master))
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/child1/.git/
==7058== Invalid read of size 4
==7058== at 0x80E6E00: copy_ref (remote.c:904)
==7058== by 0x80E7949: get_fetch_map (remote.c:1355)
==7058== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7058== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7058== by 0x804B5AA: handle_internal_command (git.c:257)
==7058== by 0x804B77D: main (git.c:454)
==7058== Address 0x4383650 is 80 bytes inside a block of size 82 alloc'd
==7058== at 0x402425F: calloc (vg_replace_malloc.c:467)
==7058== by 0x8108080: xcalloc (wrapper.c:82)
==7058== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==7058== by 0x80B85A1: get_remote_heads (connect.c:96)
==7058== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==7058== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==7058== by 0x806072A: cmd_clone (builtin-clone.c:304)
==7058== by 0x804B5AA: handle_internal_command (git.c:257)
==7058== by 0x804B77D: main (git.c:454)
==7058==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:wanted_peer_refs
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==7058== Invalid read of size 4
==7058== at 0x80E6E00: copy_ref (remote.c:904)
==7058== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==7058== by 0x8060111: cmd_clone (builtin-clone.c:555)
==7058== by 0x804B5AA: handle_internal_command (git.c:257)
==7058== by 0x804B77D: main (git.c:454)
==7058== Address 0x4383728 is 80 bytes inside a block of size 82 alloc'd
==7058== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==7058== by 0x81081E6: xmalloc (wrapper.c:20)
==7058== by 0x80E6E1A: copy_ref (remote.c:905)
==7058== by 0x80E7949: get_fetch_map (remote.c:1355)
==7058== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7058== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7058== by 0x804B5AA: handle_internal_command (git.c:257)
==7058== by 0x804B77D: main (git.c:454)
==7058==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==7058== Invalid read of size 4
==7058== at 0x80E6E00: copy_ref (remote.c:904)
==7058== by 0x80E6E62: copy_ref (remote.c:910)
==7058== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==7058== by 0x8060111: cmd_clone (builtin-clone.c:555)
==7058== by 0x804B5AA: handle_internal_command (git.c:257)
==7058== by 0x804B77D: main (git.c:454)
==7058== Address 0x43837b8 is 88 bytes inside a block of size 91 alloc'd
==7058== at 0x402425F: calloc (vg_replace_malloc.c:467)
==7058== by 0x8108080: xcalloc (wrapper.c:82)
==7058== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==7058== by 0x80E7956: get_fetch_map (remote.c:1357)
==7058== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7058== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7058== by 0x804B5AA: handle_internal_command (git.c:257)
==7058== by 0x804B77D: main (git.c:454)
==7058==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
* FAIL 38: push updates up-to-date local refs
mk_test heads/master &&
mk_child child1 &&
mk_child child2 &&
(cd child1 && git pull .. master && git push) &&
(cd child2 &&
git pull ../child1 master &&
git push &&
test $(git rev-parse master) = $(git rev-parse remotes/origin/master))
* expecting success:
mk_test heads/master &&
mk_child child &&
(cd child &&
git push &&
! test -f .git/refs/remotes/origin/master)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/child/.git/
==7170== Invalid read of size 4
==7170== at 0x80E6E00: copy_ref (remote.c:904)
==7170== by 0x80E7949: get_fetch_map (remote.c:1355)
==7170== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7170== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7170== by 0x804B5AA: handle_internal_command (git.c:257)
==7170== by 0x804B77D: main (git.c:454)
==7170== Address 0x4383650 is 80 bytes inside a block of size 82 alloc'd
==7170== at 0x402425F: calloc (vg_replace_malloc.c:467)
==7170== by 0x8108080: xcalloc (wrapper.c:82)
==7170== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==7170== by 0x80B85A1: get_remote_heads (connect.c:96)
==7170== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==7170== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==7170== by 0x806072A: cmd_clone (builtin-clone.c:304)
==7170== by 0x804B5AA: handle_internal_command (git.c:257)
==7170== by 0x804B77D: main (git.c:454)
==7170==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:wanted_peer_refs
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==7170== Invalid read of size 4
==7170== at 0x80E6E00: copy_ref (remote.c:904)
==7170== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==7170== by 0x8060111: cmd_clone (builtin-clone.c:555)
==7170== by 0x804B5AA: handle_internal_command (git.c:257)
==7170== by 0x804B77D: main (git.c:454)
==7170== Address 0x4383728 is 80 bytes inside a block of size 82 alloc'd
==7170== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==7170== by 0x81081E6: xmalloc (wrapper.c:20)
==7170== by 0x80E6E1A: copy_ref (remote.c:905)
==7170== by 0x80E7949: get_fetch_map (remote.c:1355)
==7170== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7170== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7170== by 0x804B5AA: handle_internal_command (git.c:257)
==7170== by 0x804B77D: main (git.c:454)
==7170==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==7170== Invalid read of size 4
==7170== at 0x80E6E00: copy_ref (remote.c:904)
==7170== by 0x80E6E62: copy_ref (remote.c:910)
==7170== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==7170== by 0x8060111: cmd_clone (builtin-clone.c:555)
==7170== by 0x804B5AA: handle_internal_command (git.c:257)
==7170== by 0x804B77D: main (git.c:454)
==7170== Address 0x43837b8 is 88 bytes inside a block of size 91 alloc'd
==7170== at 0x402425F: calloc (vg_replace_malloc.c:467)
==7170== by 0x8108080: xcalloc (wrapper.c:82)
==7170== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==7170== by 0x80E7956: get_fetch_map (remote.c:1357)
==7170== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7170== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7170== by 0x804B5AA: handle_internal_command (git.c:257)
==7170== by 0x804B77D: main (git.c:454)
==7170==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
* FAIL 39: push preserves up-to-date packed refs
mk_test heads/master &&
mk_child child &&
(cd child &&
git push &&
! test -f .git/refs/remotes/origin/master)
* expecting success:
mk_test heads/master &&
mk_child child &&
mkdir testrepo/.git/hooks &&
echo exit 1 >testrepo/.git/hooks/pre-receive &&
chmod +x testrepo/.git/hooks/pre-receive &&
(cd child &&
git pull .. master
test_must_fail git push &&
test $(git rev-parse master) != \
$(git rev-parse remotes/origin/master))
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/child/.git/
==7281== Invalid read of size 4
==7281== at 0x80E6E00: copy_ref (remote.c:904)
==7281== by 0x80E7949: get_fetch_map (remote.c:1355)
==7281== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7281== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7281== by 0x804B5AA: handle_internal_command (git.c:257)
==7281== by 0x804B77D: main (git.c:454)
==7281== Address 0x4383650 is 80 bytes inside a block of size 82 alloc'd
==7281== at 0x402425F: calloc (vg_replace_malloc.c:467)
==7281== by 0x8108080: xcalloc (wrapper.c:82)
==7281== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==7281== by 0x80B85A1: get_remote_heads (connect.c:96)
==7281== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==7281== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==7281== by 0x806072A: cmd_clone (builtin-clone.c:304)
==7281== by 0x804B5AA: handle_internal_command (git.c:257)
==7281== by 0x804B77D: main (git.c:454)
==7281==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:wanted_peer_refs
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==7281== Invalid read of size 4
==7281== at 0x80E6E00: copy_ref (remote.c:904)
==7281== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==7281== by 0x8060111: cmd_clone (builtin-clone.c:555)
==7281== by 0x804B5AA: handle_internal_command (git.c:257)
==7281== by 0x804B77D: main (git.c:454)
==7281== Address 0x4383728 is 80 bytes inside a block of size 82 alloc'd
==7281== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==7281== by 0x81081E6: xmalloc (wrapper.c:20)
==7281== by 0x80E6E1A: copy_ref (remote.c:905)
==7281== by 0x80E7949: get_fetch_map (remote.c:1355)
==7281== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7281== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7281== by 0x804B5AA: handle_internal_command (git.c:257)
==7281== by 0x804B77D: main (git.c:454)
==7281==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==7281== Invalid read of size 4
==7281== at 0x80E6E00: copy_ref (remote.c:904)
==7281== by 0x80E6E62: copy_ref (remote.c:910)
==7281== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==7281== by 0x8060111: cmd_clone (builtin-clone.c:555)
==7281== by 0x804B5AA: handle_internal_command (git.c:257)
==7281== by 0x804B77D: main (git.c:454)
==7281== Address 0x43837b8 is 88 bytes inside a block of size 91 alloc'd
==7281== at 0x402425F: calloc (vg_replace_malloc.c:467)
==7281== by 0x8108080: xcalloc (wrapper.c:82)
==7281== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==7281== by 0x80E7956: get_fetch_map (remote.c:1357)
==7281== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==7281== by 0x8060741: cmd_clone (builtin-clone.c:515)
==7281== by 0x804B5AA: handle_internal_command (git.c:257)
==7281== by 0x804B77D: main (git.c:454)
==7281==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
* FAIL 40: push does not update local refs on failure
mk_test heads/master &&
mk_child child &&
mkdir testrepo/.git/hooks &&
echo exit 1 >testrepo/.git/hooks/pre-receive &&
chmod +x testrepo/.git/hooks/pre-receive &&
(cd child &&
git pull .. master
test_must_fail git push &&
test $(git rev-parse master) != \
$(git rev-parse remotes/origin/master))
* expecting success:
mk_test heads/master &&
rm -f testrepo/.git/objects/??/* &&
git push testrepo :refs/heads/master &&
(cd testrepo && test_must_fail git rev-parse --verify refs/heads/master)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
error: refs/heads/master does not point to a valid object!
remote: warning: updating the current branch
remote: warning: Allowing deletion of corrupt ref.
To testrepo
- [deleted] master
fatal: Needed a single revision
* ok 41: allow deleting an invalid remote ref
* expecting success:
mk_test heads/master &&
(cd testrepo && git config receive.denyDeleteCurrent warn) &&
git push testrepo --delete master &&
(cd testrepo && test_must_fail git rev-parse --verify refs/heads/master)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
remote: warning: updating the current branch
remote: warning: deleting the current branch
To testrepo
- [deleted] master
fatal: Needed a single revision
* ok 42: allow deleting a ref using --delete
* expecting success:
mk_test heads/master &&
git tag -a -m dummy_message deltag heads/master &&
git push testrepo --tags &&
(cd testrepo && git rev-parse --verify -q refs/tags/deltag) &&
git push testrepo --delete tag deltag &&
(cd testrepo && test_must_fail git rev-parse --verify refs/tags/deltag)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
==7679== Invalid read of size 4
==7679== at 0x80E6E00: copy_ref (remote.c:904)
==7679== by 0x80EA2D5: match_refs (remote.c:1240)
==7679== by 0x80FE553: transport_push (transport.c:1046)
==7679== by 0x808F623: push_with_options (builtin-push.c:116)
==7679== by 0x808FD69: cmd_push (builtin-push.c:187)
==7679== by 0x804B5AA: handle_internal_command (git.c:257)
==7679== by 0x804B77D: main (git.c:454)
==7679== Address 0x4353330 is 80 bytes inside a block of size 81 alloc'd
==7679== at 0x402425F: calloc (vg_replace_malloc.c:467)
==7679== by 0x8108080: xcalloc (wrapper.c:82)
==7679== by 0x80E9D14: one_local_ref (remote.c:1626)
==7679== by 0x80E3834: do_one_ref (refs.c:555)
==7679== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==7679== by 0x80E6CF5: get_local_heads (remote.c:1637)
==7679== by 0x80FE51F: transport_push (transport.c:1033)
==7679== by 0x808F623: push_with_options (builtin-push.c:116)
==7679== by 0x808FD69: cmd_push (builtin-push.c:187)
==7679== by 0x804B5AA: handle_internal_command (git.c:257)
==7679== by 0x804B77D: main (git.c:454)
==7679==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==7699== Syscall param write(buf) points to uninitialised byte(s)
==7699== at 0x41BBEDB: ??? (syscall-template.S:82)
==7699== by 0x80B99A0: flush (csum-file.c:17)
==7699== by 0x80B9B5C: sha1flush (csum-file.c:39)
==7699== by 0x80B9BA8: sha1close (csum-file.c:48)
==7699== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==7699== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==7699== by 0x804B5AA: handle_internal_command (git.c:257)
==7699== by 0x804B77D: main (git.c:454)
==7699== Address 0x43b67d1 is 473 bytes inside a block of size 8,320 alloc'd
==7699== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==7699== by 0x81081E6: xmalloc (wrapper.c:20)
==7699== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==7699== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==7699== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==7699== by 0x804B5AA: handle_internal_command (git.c:257)
==7699== by 0x804B77D: main (git.c:454)
==7699== Uninitialised value was created by a heap allocation
==7699== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==7699== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==7699== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==7699== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==7699== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==7699== by 0x808A738: write_one (builtin-pack-objects.c:318)
==7699== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==7699== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==7699== by 0x804B5AA: handle_internal_command (git.c:257)
==7699== by 0x804B77D: main (git.c:454)
==7699==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==7699== Syscall param write(buf) points to uninitialised byte(s)
==7699== at 0x41BBEDB: ??? (syscall-template.S:82)
==7699== by 0x80B99A0: flush (csum-file.c:17)
==7699== by 0x80B9C0D: sha1close (csum-file.c:54)
==7699== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==7699== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==7699== by 0x804B5AA: handle_internal_command (git.c:257)
==7699== by 0x804B77D: main (git.c:454)
==7699== Address 0x43b6678 is 128 bytes inside a block of size 8,320 alloc'd
==7699== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==7699== by 0x81081E6: xmalloc (wrapper.c:20)
==7699== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==7699== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==7699== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==7699== by 0x804B5AA: handle_internal_command (git.c:257)
==7699== by 0x804B77D: main (git.c:454)
==7699== Uninitialised value was created by a heap allocation
==7699== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==7699== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==7699== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==7699== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==7699== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==7699== by 0x808A738: write_one (builtin-pack-objects.c:318)
==7699== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==7699== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==7699== by 0x804B5AA: handle_internal_command (git.c:257)
==7699== by 0x804B77D: main (git.c:454)
==7699==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==7709== Syscall param write(buf) points to uninitialised byte(s)
==7709== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==7709== by 0x8107ED6: write_in_full (wrapper.c:166)
==7709== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==7709== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==7709== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==7709== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==7709== by 0x804B5AA: handle_internal_command (git.c:257)
==7709== by 0x804B77D: main (git.c:454)
==7709== Address 0xbe90f338 is on thread 1's stack
==7709== Uninitialised value was created by a heap allocation
==7709== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==7709== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==7709== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==7709== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==7709== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==7709== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==7709== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==7709== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==7709== by 0x804B5AA: handle_internal_command (git.c:257)
==7709== by 0x804B77D: main (git.c:454)
==7709==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* FAIL 43: allow deleting a tag using --delete
mk_test heads/master &&
git tag -a -m dummy_message deltag heads/master &&
git push testrepo --tags &&
(cd testrepo && git rev-parse --verify -q refs/tags/deltag) &&
git push testrepo --delete tag deltag &&
(cd testrepo && test_must_fail git rev-parse --verify refs/tags/deltag)
* expecting success:
mk_test heads/master &&
test_must_fail git push testrepo --delete
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
fatal: --delete doesn't make sense without any refs
* ok 44: push --delete without args aborts
* expecting success:
mk_test heads/master &&
test_must_fail git push testrepo --delete master:foo
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
fatal: --delete only accepts plain target ref names
* ok 45: push --delete refuses src:dest refspecs
* expecting success:
mk_test heads/master
(cd testrepo &&
git checkout master &&
git config receive.denyCurrentBranch warn) &&
git push testrepo master 2>stderr &&
grep "warning: updating the current branch" stderr
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Already on 'master'
==8037== Invalid read of size 4
==8037== at 0x80E6E00: copy_ref (remote.c:904)
==8037== by 0x80EA352: match_refs (remote.c:1124)
==8037== by 0x80FE553: transport_push (transport.c:1046)
==8037== by 0x808F623: push_with_options (builtin-push.c:116)
==8037== by 0x808FD69: cmd_push (builtin-push.c:187)
==8037== by 0x804B5AA: handle_internal_command (git.c:257)
==8037== by 0x804B77D: main (git.c:454)
==8037== Address 0x4353220 is 80 bytes inside a block of size 82 alloc'd
==8037== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8037== by 0x8108080: xcalloc (wrapper.c:82)
==8037== by 0x80E9D14: one_local_ref (remote.c:1626)
==8037== by 0x80E3834: do_one_ref (refs.c:555)
==8037== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==8037== by 0x80E6CF5: get_local_heads (remote.c:1637)
==8037== by 0x80FE51F: transport_push (transport.c:1033)
==8037== by 0x808F623: push_with_options (builtin-push.c:116)
==8037== by 0x808FD69: cmd_push (builtin-push.c:187)
==8037== by 0x804B5AA: handle_internal_command (git.c:257)
==8037== by 0x804B77D: main (git.c:454)
==8037==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==8057== Syscall param write(buf) points to uninitialised byte(s)
==8057== at 0x41BBEDB: ??? (syscall-template.S:82)
==8057== by 0x80B99A0: flush (csum-file.c:17)
==8057== by 0x80B9B5C: sha1flush (csum-file.c:39)
==8057== by 0x80B9BA8: sha1close (csum-file.c:48)
==8057== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8057== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8057== by 0x804B5AA: handle_internal_command (git.c:257)
==8057== by 0x804B77D: main (git.c:454)
==8057== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==8057== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8057== by 0x81081E6: xmalloc (wrapper.c:20)
==8057== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8057== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8057== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8057== by 0x804B5AA: handle_internal_command (git.c:257)
==8057== by 0x804B77D: main (git.c:454)
==8057== Uninitialised value was created by a heap allocation
==8057== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8057== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8057== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8057== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8057== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8057== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8057== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8057== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8057== by 0x804B5AA: handle_internal_command (git.c:257)
==8057== by 0x804B77D: main (git.c:454)
==8057==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==8057== Syscall param write(buf) points to uninitialised byte(s)
==8057== at 0x41BBEDB: ??? (syscall-template.S:82)
==8057== by 0x80B99A0: flush (csum-file.c:17)
==8057== by 0x80B9C0D: sha1close (csum-file.c:54)
==8057== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8057== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8057== by 0x804B5AA: handle_internal_command (git.c:257)
==8057== by 0x804B77D: main (git.c:454)
==8057== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==8057== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8057== by 0x81081E6: xmalloc (wrapper.c:20)
==8057== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8057== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8057== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8057== by 0x804B5AA: handle_internal_command (git.c:257)
==8057== by 0x804B77D: main (git.c:454)
==8057== Uninitialised value was created by a heap allocation
==8057== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8057== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8057== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8057== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8057== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8057== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8057== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8057== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8057== by 0x804B5AA: handle_internal_command (git.c:257)
==8057== by 0x804B77D: main (git.c:454)
==8057==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==8067== Syscall param write(buf) points to uninitialised byte(s)
==8067== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==8067== by 0x8107ED6: write_in_full (wrapper.c:166)
==8067== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==8067== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8067== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8067== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8067== by 0x804B5AA: handle_internal_command (git.c:257)
==8067== by 0x804B77D: main (git.c:454)
==8067== Address 0xbea07338 is on thread 1's stack
==8067== Uninitialised value was created by a heap allocation
==8067== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8067== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8067== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8067== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8067== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==8067== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8067== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8067== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8067== by 0x804B5AA: handle_internal_command (git.c:257)
==8067== by 0x804B77D: main (git.c:454)
==8067==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
* FAIL 46: warn on push to HEAD of non-bare repository
mk_test heads/master
(cd testrepo &&
git checkout master &&
git config receive.denyCurrentBranch warn) &&
git push testrepo master 2>stderr &&
grep "warning: updating the current branch" stderr
* expecting success:
mk_test heads/master
(cd testrepo &&
git checkout master &&
git config receive.denyCurrentBranch true) &&
test_must_fail git push testrepo master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Already on 'master'
==8199== Invalid read of size 4
==8199== at 0x80E6E00: copy_ref (remote.c:904)
==8199== by 0x80EA352: match_refs (remote.c:1124)
==8199== by 0x80FE553: transport_push (transport.c:1046)
==8199== by 0x808F623: push_with_options (builtin-push.c:116)
==8199== by 0x808FD69: cmd_push (builtin-push.c:187)
==8199== by 0x804B5AA: handle_internal_command (git.c:257)
==8199== by 0x804B77D: main (git.c:454)
==8199== Address 0x4353220 is 80 bytes inside a block of size 82 alloc'd
==8199== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8199== by 0x8108080: xcalloc (wrapper.c:82)
==8199== by 0x80E9D14: one_local_ref (remote.c:1626)
==8199== by 0x80E3834: do_one_ref (refs.c:555)
==8199== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==8199== by 0x80E6CF5: get_local_heads (remote.c:1637)
==8199== by 0x80FE51F: transport_push (transport.c:1033)
==8199== by 0x808F623: push_with_options (builtin-push.c:116)
==8199== by 0x808FD69: cmd_push (builtin-push.c:187)
==8199== by 0x804B5AA: handle_internal_command (git.c:257)
==8199== by 0x804B77D: main (git.c:454)
==8199==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==8231== Syscall param write(buf) points to uninitialised byte(s)
==8231== at 0x41BBEDB: ??? (syscall-template.S:82)
==8231== by 0x80B99A0: flush (csum-file.c:17)
==8231== by 0x80B9B5C: sha1flush (csum-file.c:39)
==8231== by 0x80B9BA8: sha1close (csum-file.c:48)
==8231== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8231== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8231== by 0x804B5AA: handle_internal_command (git.c:257)
==8231== by 0x804B77D: main (git.c:454)
==8231== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==8231== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8231== by 0x81081E6: xmalloc (wrapper.c:20)
==8231== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8231== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8231== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8231== by 0x804B5AA: handle_internal_command (git.c:257)
==8231== by 0x804B77D: main (git.c:454)
==8231== Uninitialised value was created by a heap allocation
==8231== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8231== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8231== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8231== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8231== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8231== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8231== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8231== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8231== by 0x804B5AA: handle_internal_command (git.c:257)
==8231== by 0x804B77D: main (git.c:454)
==8231==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==8231== Syscall param write(buf) points to uninitialised byte(s)
==8231== at 0x41BBEDB: ??? (syscall-template.S:82)
==8231== by 0x80B99A0: flush (csum-file.c:17)
==8231== by 0x80B9C0D: sha1close (csum-file.c:54)
==8231== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8231== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8231== by 0x804B5AA: handle_internal_command (git.c:257)
==8231== by 0x804B77D: main (git.c:454)
==8231== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==8231== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8231== by 0x81081E6: xmalloc (wrapper.c:20)
==8231== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8231== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8231== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8231== by 0x804B5AA: handle_internal_command (git.c:257)
==8231== by 0x804B77D: main (git.c:454)
==8231== Uninitialised value was created by a heap allocation
==8231== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8231== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8231== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8231== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8231== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8231== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8231== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8231== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8231== by 0x804B5AA: handle_internal_command (git.c:257)
==8231== by 0x804B77D: main (git.c:454)
==8231==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: pack-objects died with strange error
==8241== Syscall param write(buf) points to uninitialised byte(s)
==8241== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==8241== by 0x8107ED6: write_in_full (wrapper.c:166)
==8241== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==8241== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8241== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8241== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8241== by 0x804B5AA: handle_internal_command (git.c:257)
==8241== by 0x804B77D: main (git.c:454)
==8241== Address 0xbe94a338 is on thread 1's stack
==8241== Uninitialised value was created by a heap allocation
==8241== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8241== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8241== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8241== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8241== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==8241== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8241== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8241== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8241== by 0x804B5AA: handle_internal_command (git.c:257)
==8241== by 0x804B77D: main (git.c:454)
==8241==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
error: failed to push some refs to 'testrepo'
* ok 47: deny push to HEAD of non-bare repository
* expecting success:
mk_test heads/master
(cd testrepo &&
git checkout master &&
git config receive.denyCurrentBranch true &&
git config core.bare true) &&
git push testrepo master 2>stderr &&
! grep "warning: updating the current branch" stderr
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Already on 'master'
==8379== Invalid read of size 4
==8379== at 0x80E6E00: copy_ref (remote.c:904)
==8379== by 0x80EA352: match_refs (remote.c:1124)
==8379== by 0x80FE553: transport_push (transport.c:1046)
==8379== by 0x808F623: push_with_options (builtin-push.c:116)
==8379== by 0x808FD69: cmd_push (builtin-push.c:187)
==8379== by 0x804B5AA: handle_internal_command (git.c:257)
==8379== by 0x804B77D: main (git.c:454)
==8379== Address 0x4353220 is 80 bytes inside a block of size 82 alloc'd
==8379== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8379== by 0x8108080: xcalloc (wrapper.c:82)
==8379== by 0x80E9D14: one_local_ref (remote.c:1626)
==8379== by 0x80E3834: do_one_ref (refs.c:555)
==8379== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==8379== by 0x80E6CF5: get_local_heads (remote.c:1637)
==8379== by 0x80FE51F: transport_push (transport.c:1033)
==8379== by 0x808F623: push_with_options (builtin-push.c:116)
==8379== by 0x808FD69: cmd_push (builtin-push.c:187)
==8379== by 0x804B5AA: handle_internal_command (git.c:257)
==8379== by 0x804B77D: main (git.c:454)
==8379==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==8399== Syscall param write(buf) points to uninitialised byte(s)
==8399== at 0x41BBEDB: ??? (syscall-template.S:82)
==8399== by 0x80B99A0: flush (csum-file.c:17)
==8399== by 0x80B9B5C: sha1flush (csum-file.c:39)
==8399== by 0x80B9BA8: sha1close (csum-file.c:48)
==8399== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8399== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8399== by 0x804B5AA: handle_internal_command (git.c:257)
==8399== by 0x804B77D: main (git.c:454)
==8399== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==8399== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8399== by 0x81081E6: xmalloc (wrapper.c:20)
==8399== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8399== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8399== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8399== by 0x804B5AA: handle_internal_command (git.c:257)
==8399== by 0x804B77D: main (git.c:454)
==8399== Uninitialised value was created by a heap allocation
==8399== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8399== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8399== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8399== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8399== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8399== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8399== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8399== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8399== by 0x804B5AA: handle_internal_command (git.c:257)
==8399== by 0x804B77D: main (git.c:454)
==8399==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==8399== Syscall param write(buf) points to uninitialised byte(s)
==8399== at 0x41BBEDB: ??? (syscall-template.S:82)
==8399== by 0x80B99A0: flush (csum-file.c:17)
==8399== by 0x80B9C0D: sha1close (csum-file.c:54)
==8399== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8399== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8399== by 0x804B5AA: handle_internal_command (git.c:257)
==8399== by 0x804B77D: main (git.c:454)
==8399== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==8399== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8399== by 0x81081E6: xmalloc (wrapper.c:20)
==8399== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8399== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8399== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8399== by 0x804B5AA: handle_internal_command (git.c:257)
==8399== by 0x804B77D: main (git.c:454)
==8399== Uninitialised value was created by a heap allocation
==8399== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8399== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8399== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8399== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8399== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8399== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8399== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8399== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8399== by 0x804B5AA: handle_internal_command (git.c:257)
==8399== by 0x804B77D: main (git.c:454)
==8399==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==8409== Syscall param write(buf) points to uninitialised byte(s)
==8409== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==8409== by 0x8107ED6: write_in_full (wrapper.c:166)
==8409== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==8409== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8409== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8409== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8409== by 0x804B5AA: handle_internal_command (git.c:257)
==8409== by 0x804B77D: main (git.c:454)
==8409== Address 0xbe9e7338 is on thread 1's stack
==8409== Uninitialised value was created by a heap allocation
==8409== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8409== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8409== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8409== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8409== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==8409== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8409== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8409== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8409== by 0x804B5AA: handle_internal_command (git.c:257)
==8409== by 0x804B77D: main (git.c:454)
==8409==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
* FAIL 48: allow push to HEAD of bare repository (bare)
mk_test heads/master
(cd testrepo &&
git checkout master &&
git config receive.denyCurrentBranch true &&
git config core.bare true) &&
git push testrepo master 2>stderr &&
! grep "warning: updating the current branch" stderr
* expecting success:
mk_test heads/master
(cd testrepo &&
git checkout master &&
git config receive.denyCurrentBranch false
) &&
git push testrepo master 2>stderr &&
! grep "warning: updating the current branch" stderr
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Already on 'master'
==8543== Invalid read of size 4
==8543== at 0x80E6E00: copy_ref (remote.c:904)
==8543== by 0x80EA352: match_refs (remote.c:1124)
==8543== by 0x80FE553: transport_push (transport.c:1046)
==8543== by 0x808F623: push_with_options (builtin-push.c:116)
==8543== by 0x808FD69: cmd_push (builtin-push.c:187)
==8543== by 0x804B5AA: handle_internal_command (git.c:257)
==8543== by 0x804B77D: main (git.c:454)
==8543== Address 0x4353220 is 80 bytes inside a block of size 82 alloc'd
==8543== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8543== by 0x8108080: xcalloc (wrapper.c:82)
==8543== by 0x80E9D14: one_local_ref (remote.c:1626)
==8543== by 0x80E3834: do_one_ref (refs.c:555)
==8543== by 0x80E5E6E: do_for_each_ref (refs.c:646)
==8543== by 0x80E6CF5: get_local_heads (remote.c:1637)
==8543== by 0x80FE51F: transport_push (transport.c:1033)
==8543== by 0x808F623: push_with_options (builtin-push.c:116)
==8543== by 0x808FD69: cmd_push (builtin-push.c:187)
==8543== by 0x804B5AA: handle_internal_command (git.c:257)
==8543== by 0x804B77D: main (git.c:454)
==8543==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:match_refs
fun:transport_push
fun:push_with_options
fun:cmd_push
fun:handle_internal_command
fun:main
}
==8569== Syscall param write(buf) points to uninitialised byte(s)
==8569== at 0x41BBEDB: ??? (syscall-template.S:82)
==8569== by 0x80B99A0: flush (csum-file.c:17)
==8569== by 0x80B9B5C: sha1flush (csum-file.c:39)
==8569== by 0x80B9BA8: sha1close (csum-file.c:48)
==8569== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8569== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8569== by 0x804B5AA: handle_internal_command (git.c:257)
==8569== by 0x804B77D: main (git.c:454)
==8569== Address 0x439bdad is 341 bytes inside a block of size 8,320 alloc'd
==8569== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8569== by 0x81081E6: xmalloc (wrapper.c:20)
==8569== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8569== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8569== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8569== by 0x804B5AA: handle_internal_command (git.c:257)
==8569== by 0x804B77D: main (git.c:454)
==8569== Uninitialised value was created by a heap allocation
==8569== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8569== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8569== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8569== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8569== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8569== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8569== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8569== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8569== by 0x804B5AA: handle_internal_command (git.c:257)
==8569== by 0x804B77D: main (git.c:454)
==8569==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==8569== Syscall param write(buf) points to uninitialised byte(s)
==8569== at 0x41BBEDB: ??? (syscall-template.S:82)
==8569== by 0x80B99A0: flush (csum-file.c:17)
==8569== by 0x80B9C0D: sha1close (csum-file.c:54)
==8569== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8569== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8569== by 0x804B5AA: handle_internal_command (git.c:257)
==8569== by 0x804B77D: main (git.c:454)
==8569== Address 0x439bcd8 is 128 bytes inside a block of size 8,320 alloc'd
==8569== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8569== by 0x81081E6: xmalloc (wrapper.c:20)
==8569== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8569== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8569== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8569== by 0x804B5AA: handle_internal_command (git.c:257)
==8569== by 0x804B77D: main (git.c:454)
==8569== Uninitialised value was created by a heap allocation
==8569== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8569== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8569== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8569== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8569== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8569== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8569== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8569== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8569== by 0x804B5AA: handle_internal_command (git.c:257)
==8569== by 0x804B77D: main (git.c:454)
==8569==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==8579== Syscall param write(buf) points to uninitialised byte(s)
==8579== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==8579== by 0x8107ED6: write_in_full (wrapper.c:166)
==8579== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==8579== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8579== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8579== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8579== by 0x804B5AA: handle_internal_command (git.c:257)
==8579== by 0x804B77D: main (git.c:454)
==8579== Address 0xbeee0338 is on thread 1's stack
==8579== Uninitialised value was created by a heap allocation
==8579== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8579== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8579== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8579== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8579== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==8579== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8579== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8579== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8579== by 0x804B5AA: handle_internal_command (git.c:257)
==8579== by 0x804B77D: main (git.c:454)
==8579==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
* FAIL 49: allow push to HEAD of non-bare repository (config)
mk_test heads/master
(cd testrepo &&
git checkout master &&
git config receive.denyCurrentBranch false
) &&
git push testrepo master 2>stderr &&
! grep "warning: updating the current branch" stderr
* expecting success:
mk_empty &&
git branch second $the_first_commit &&
git checkout second &&
echo ".." > testrepo/.git/branches/branch1 &&
(cd testrepo &&
git fetch branch1 &&
r=$(git show-ref -s --verify refs/heads/branch1) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/heads | wc -l)
) &&
git checkout master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
Switched to branch 'second'
==8640== Invalid read of size 4
==8640== at 0x80E6E00: copy_ref (remote.c:904)
==8640== by 0x80E78DD: get_fetch_map (remote.c:1417)
==8640== by 0x806D8CA: fetch_one (builtin-fetch.c:148)
==8640== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8640== by 0x804B5AA: handle_internal_command (git.c:257)
==8640== by 0x804B77D: main (git.c:454)
==8640== Address 0x4342be0 is 80 bytes inside a block of size 82 alloc'd
==8640== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8640== by 0x8108080: xcalloc (wrapper.c:82)
==8640== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==8640== by 0x80B85A1: get_remote_heads (connect.c:96)
==8640== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==8640== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==8640== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==8640== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8640== by 0x804B5AA: handle_internal_command (git.c:257)
==8640== by 0x804B77D: main (git.c:454)
==8640==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==8640== Invalid read of size 4
==8640== at 0x80E6DEC: copy_ref (remote.c:904)
==8640== by 0x80E6FA6: copy_ref_list (remote.c:919)
==8640== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==8640== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==8640== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==8640== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==8640== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==8640== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8640== by 0x804B5AA: handle_internal_command (git.c:257)
==8640== by 0x804B77D: main (git.c:454)
==8640== Address 0x4342ad4 is 68 bytes inside a block of size 69 alloc'd
==8640== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8640== by 0x8108080: xcalloc (wrapper.c:82)
==8640== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==8640== by 0x80B85A1: get_remote_heads (connect.c:96)
==8640== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==8640== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==8640== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==8640== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8640== by 0x804B5AA: handle_internal_command (git.c:257)
==8640== by 0x804B77D: main (git.c:454)
==8640==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==8640== Invalid read of size 4
==8640== at 0x80E6E00: copy_ref (remote.c:904)
==8640== by 0x80E6FA6: copy_ref_list (remote.c:919)
==8640== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==8640== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==8640== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==8640== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==8640== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==8640== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8640== by 0x804B5AA: handle_internal_command (git.c:257)
==8640== by 0x804B77D: main (git.c:454)
==8640== Address 0x4342b58 is 80 bytes inside a block of size 81 alloc'd
==8640== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8640== by 0x8108080: xcalloc (wrapper.c:82)
==8640== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==8640== by 0x80B85A1: get_remote_heads (connect.c:96)
==8640== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==8640== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==8640== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==8640== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8640== by 0x804B5AA: handle_internal_command (git.c:257)
==8640== by 0x804B77D: main (git.c:454)
==8640==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==8670== Syscall param write(buf) points to uninitialised byte(s)
==8670== at 0x41BBEDB: ??? (syscall-template.S:82)
==8670== by 0x80B99A0: flush (csum-file.c:17)
==8670== by 0x80B9B5C: sha1flush (csum-file.c:39)
==8670== by 0x80B9BA8: sha1close (csum-file.c:48)
==8670== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8670== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8670== by 0x804B5AA: handle_internal_command (git.c:257)
==8670== by 0x804B77D: main (git.c:454)
==8670== Address 0x43eb57f is 599 bytes inside a block of size 8,320 alloc'd
==8670== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8670== by 0x81081E6: xmalloc (wrapper.c:20)
==8670== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8670== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8670== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8670== by 0x804B5AA: handle_internal_command (git.c:257)
==8670== by 0x804B77D: main (git.c:454)
==8670== Uninitialised value was created by a heap allocation
==8670== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8670== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8670== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8670== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8670== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8670== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8670== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8670== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8670== by 0x804B5AA: handle_internal_command (git.c:257)
==8670== by 0x804B77D: main (git.c:454)
==8670==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
==8670== Syscall param write(buf) points to uninitialised byte(s)
==8670== at 0x41BBEDB: ??? (syscall-template.S:82)
==8670== by 0x80B99A0: flush (csum-file.c:17)
==8670== by 0x80B9C0D: sha1close (csum-file.c:54)
==8670== by 0x808B20E: write_pack_file (builtin-pack-objects.c:512)
==8670== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8670== by 0x804B5AA: handle_internal_command (git.c:257)
==8670== by 0x804B77D: main (git.c:454)
==8670== Address 0x43eb3a8 is 128 bytes inside a block of size 8,320 alloc'd
==8670== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8670== by 0x81081E6: xmalloc (wrapper.c:20)
==8670== by 0x80B9902: sha1fd_throughput (csum-file.c:106)
==8670== by 0x808AFE2: write_pack_file (builtin-pack-objects.c:485)
==8670== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8670== by 0x804B5AA: handle_internal_command (git.c:257)
==8670== by 0x804B77D: main (git.c:454)
==8670== Uninitialised value was created by a heap allocation
==8670== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8670== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8670== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8670== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8670== by 0x80899CC: do_compress (builtin-pack-objects.c:138)
==8670== by 0x808A738: write_one (builtin-pack-objects.c:318)
==8670== by 0x808B090: write_pack_file (builtin-pack-objects.c:502)
==8670== by 0x808C26D: cmd_pack_objects (builtin-pack-objects.c:2355)
==8670== by 0x804B5AA: handle_internal_command (git.c:257)
==8670== by 0x804B77D: main (git.c:454)
==8670==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
obj:/lib/tls/i686/cmov/libpthread-2.11.1.so
fun:flush
fun:sha1close
fun:write_pack_file
fun:cmd_pack_objects
fun:handle_internal_command
fun:main
}
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
==8680== Syscall param write(buf) points to uninitialised byte(s)
==8680== at 0x41BBEB3: __write_nocancel (syscall-template.S:82)
==8680== by 0x8107ED6: write_in_full (wrapper.c:166)
==8680== by 0x80F5E79: write_loose_object (sha1_file.c:2216)
==8680== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8680== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8680== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8680== by 0x804B5AA: handle_internal_command (git.c:257)
==8680== by 0x804B77D: main (git.c:454)
==8680== Address 0xbef79378 is on thread 1's stack
==8680== Uninitialised value was created by a heap allocation
==8680== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==8680== by 0x4050600: ??? (in /lib/libz.so.1.2.3.3)
==8680== by 0x404CA88: deflateInit2_ (in /lib/libz.so.1.2.3.3)
==8680== by 0x404CC01: deflateInit_ (in /lib/libz.so.1.2.3.3)
==8680== by 0x80F5D87: write_loose_object (sha1_file.c:2304)
==8680== by 0x80F7537: write_sha1_file (sha1_file.c:2366)
==8680== by 0x80A4298: write_object (builtin-unpack-objects.c:230)
==8680== by 0x80A4AD8: cmd_unpack_objects (builtin-unpack-objects.c:308)
==8680== by 0x804B5AA: handle_internal_command (git.c:257)
==8680== by 0x804B77D: main (git.c:454)
==8680==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:write_in_full
fun:write_loose_object
fun:write_sha1_file
fun:write_object
fun:cmd_unpack_objects
fun:handle_internal_command
fun:main
}
fatal: unpack-objects failed
* FAIL 50: fetch with branches
mk_empty &&
git branch second $the_first_commit &&
git checkout second &&
echo ".." > testrepo/.git/branches/branch1 &&
(cd testrepo &&
git fetch branch1 &&
r=$(git show-ref -s --verify refs/heads/branch1) &&
test "z$r" = "z$the_commit" &&
test 1 = $(git for-each-ref refs/heads | wc -l)
) &&
git checkout master
* expecting success:
mk_empty &&
echo "..#second" > testrepo/.git/branches/branch2 &&
(cd testrepo &&
git fetch branch2 &&
r=$(git show-ref -s --verify refs/heads/branch2) &&
test "z$r" = "z$the_first_commit" &&
test 1 = $(git for-each-ref refs/heads | wc -l)
) &&
git checkout master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
==8714== Invalid read of size 4
==8714== at 0x80E6E00: copy_ref (remote.c:904)
==8714== by 0x80E78DD: get_fetch_map (remote.c:1417)
==8714== by 0x806D8CA: fetch_one (builtin-fetch.c:148)
==8714== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8714== by 0x804B5AA: handle_internal_command (git.c:257)
==8714== by 0x804B77D: main (git.c:454)
==8714== Address 0x4342c30 is 80 bytes inside a block of size 82 alloc'd
==8714== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8714== by 0x8108080: xcalloc (wrapper.c:82)
==8714== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==8714== by 0x80B85A1: get_remote_heads (connect.c:96)
==8714== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==8714== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==8714== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==8714== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8714== by 0x804B5AA: handle_internal_command (git.c:257)
==8714== by 0x804B77D: main (git.c:454)
==8714==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==8714== Invalid read of size 4
==8714== at 0x80E6DEC: copy_ref (remote.c:904)
==8714== by 0x80E6FA6: copy_ref_list (remote.c:919)
==8714== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==8714== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==8714== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==8714== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==8714== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==8714== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8714== by 0x804B5AA: handle_internal_command (git.c:257)
==8714== by 0x804B77D: main (git.c:454)
==8714== Address 0x4342a9c is 68 bytes inside a block of size 69 alloc'd
==8714== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8714== by 0x8108080: xcalloc (wrapper.c:82)
==8714== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==8714== by 0x80B85A1: get_remote_heads (connect.c:96)
==8714== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==8714== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==8714== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==8714== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8714== by 0x804B5AA: handle_internal_command (git.c:257)
==8714== by 0x804B77D: main (git.c:454)
==8714==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
==8714== Invalid read of size 4
==8714== at 0x80E6E00: copy_ref (remote.c:904)
==8714== by 0x80E6FA6: copy_ref_list (remote.c:919)
==8714== by 0x806AD5A: fetch_pack (builtin-fetch-pack.c:690)
==8714== by 0x80FF4E5: fetch_refs_via_pack (transport.c:541)
==8714== by 0x80FDE57: transport_fetch_refs (transport.c:1121)
==8714== by 0x806D182: fetch_refs (builtin-fetch.c:494)
==8714== by 0x806D6E8: fetch_one (builtin-fetch.c:706)
==8714== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8714== by 0x804B5AA: handle_internal_command (git.c:257)
==8714== by 0x804B77D: main (git.c:454)
==8714== Address 0x4342b20 is 80 bytes inside a block of size 81 alloc'd
==8714== at 0x402425F: calloc (vg_replace_malloc.c:467)
==8714== by 0x8108080: xcalloc (wrapper.c:82)
==8714== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==8714== by 0x80B85A1: get_remote_heads (connect.c:96)
==8714== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==8714== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==8714== by 0x806D5D7: fetch_one (builtin-fetch.c:128)
==8714== by 0x806DDEF: cmd_fetch (builtin-fetch.c:932)
==8714== by 0x804B5AA: handle_internal_command (git.c:257)
==8714== by 0x804B77D: main (git.c:454)
==8714==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref_list
fun:fetch_pack
fun:fetch_refs_via_pack
fun:transport_fetch_refs
fun:fetch_refs
fun:fetch_one
fun:cmd_fetch
fun:handle_internal_command
fun:main
}
fatal: error in sideband demultiplexer
* FAIL 51: fetch with branches containing #
mk_empty &&
echo "..#second" > testrepo/.git/branches/branch2 &&
(cd testrepo &&
git fetch branch2 &&
r=$(git show-ref -s --verify refs/heads/branch2) &&
test "z$r" = "z$the_first_commit" &&
test 1 = $(git for-each-ref refs/heads | wc -l)
) &&
git checkout master
* expecting success:
mk_empty &&
git checkout second &&
echo "testrepo" > .git/branches/branch1 &&
git push branch1 &&
(cd testrepo &&
r=$(git show-ref -s --verify refs/heads/master) &&
test "z$r" = "z$the_first_commit" &&
test 1 = $(git for-each-ref refs/heads | wc -l)
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
Already on 'second'
remote: warning: updating the current branch
To testrepo
* [new branch] HEAD -> master
* ok 52: push with branches
* expecting success:
mk_empty &&
echo "testrepo#branch3" > .git/branches/branch2 &&
git push branch2 &&
(cd testrepo &&
r=$(git show-ref -s --verify refs/heads/branch3) &&
test "z$r" = "z$the_first_commit" &&
test 1 = $(git for-each-ref refs/heads | wc -l)
) &&
git checkout master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
To testrepo
* [new branch] HEAD -> branch3
Switched to branch 'master'
* ok 53: push with branches containing #
* expecting success:
mk_test heads/master &&
mk_child child1 &&
mk_child child2 &&
(
cd child1 &&
git branch foo &&
git symbolic-ref refs/heads/bar refs/heads/foo
git config receive.denyCurrentBranch false
) &&
(
cd child2 &&
>path2 &&
git add path2 &&
test_tick &&
git commit -a -m child2 &&
git branch foo &&
git branch bar &&
git push ../child1 foo bar
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/child1/.git/
==9063== Invalid read of size 4
==9063== at 0x80E6E00: copy_ref (remote.c:904)
==9063== by 0x80E7949: get_fetch_map (remote.c:1355)
==9063== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==9063== by 0x8060741: cmd_clone (builtin-clone.c:515)
==9063== by 0x804B5AA: handle_internal_command (git.c:257)
==9063== by 0x804B77D: main (git.c:454)
==9063== Address 0x4383650 is 80 bytes inside a block of size 82 alloc'd
==9063== at 0x402425F: calloc (vg_replace_malloc.c:467)
==9063== by 0x8108080: xcalloc (wrapper.c:82)
==9063== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==9063== by 0x80B85A1: get_remote_heads (connect.c:96)
==9063== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==9063== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==9063== by 0x806072A: cmd_clone (builtin-clone.c:304)
==9063== by 0x804B5AA: handle_internal_command (git.c:257)
==9063== by 0x804B77D: main (git.c:454)
==9063==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:wanted_peer_refs
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==9063== Invalid read of size 4
==9063== at 0x80E6E00: copy_ref (remote.c:904)
==9063== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==9063== by 0x8060111: cmd_clone (builtin-clone.c:555)
==9063== by 0x804B5AA: handle_internal_command (git.c:257)
==9063== by 0x804B77D: main (git.c:454)
==9063== Address 0x4383728 is 80 bytes inside a block of size 82 alloc'd
==9063== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==9063== by 0x81081E6: xmalloc (wrapper.c:20)
==9063== by 0x80E6E1A: copy_ref (remote.c:905)
==9063== by 0x80E7949: get_fetch_map (remote.c:1355)
==9063== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==9063== by 0x8060741: cmd_clone (builtin-clone.c:515)
==9063== by 0x804B5AA: handle_internal_command (git.c:257)
==9063== by 0x804B77D: main (git.c:454)
==9063==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==9063== Invalid read of size 4
==9063== at 0x80E6E00: copy_ref (remote.c:904)
==9063== by 0x80E6E62: copy_ref (remote.c:910)
==9063== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==9063== by 0x8060111: cmd_clone (builtin-clone.c:555)
==9063== by 0x804B5AA: handle_internal_command (git.c:257)
==9063== by 0x804B77D: main (git.c:454)
==9063== Address 0x43837b8 is 88 bytes inside a block of size 91 alloc'd
==9063== at 0x402425F: calloc (vg_replace_malloc.c:467)
==9063== by 0x8108080: xcalloc (wrapper.c:82)
==9063== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==9063== by 0x80E7956: get_fetch_map (remote.c:1357)
==9063== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==9063== by 0x8060741: cmd_clone (builtin-clone.c:515)
==9063== by 0x804B5AA: handle_internal_command (git.c:257)
==9063== by 0x804B77D: main (git.c:454)
==9063==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
* FAIL 54: push into aliased refs (consistent)
mk_test heads/master &&
mk_child child1 &&
mk_child child2 &&
(
cd child1 &&
git branch foo &&
git symbolic-ref refs/heads/bar refs/heads/foo
git config receive.denyCurrentBranch false
) &&
(
cd child2 &&
>path2 &&
git add path2 &&
test_tick &&
git commit -a -m child2 &&
git branch foo &&
git branch bar &&
git push ../child1 foo bar
)
* expecting success:
mk_test heads/master &&
mk_child child1 &&
mk_child child2 &&
(
cd child1 &&
git branch foo &&
git symbolic-ref refs/heads/bar refs/heads/foo
git config receive.denyCurrentBranch false
) &&
(
cd child2 &&
>path2 &&
git add path2 &&
test_tick &&
git commit -a -m child2 &&
git branch foo &&
>path3 &&
git add path3 &&
test_tick &&
git commit -a -m child2 &&
git branch bar &&
test_must_fail git push ../child1 foo bar 2>stderr &&
grep "refusing inconsistent update" stderr
)
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/testrepo/.git/
remote: warning: updating the current branch
To testrepo
* [new branch] b9c09d6cc74d3857142fb7c082dca65b88254c6d -> master
Initialized empty Git repository in /home/avar/g/git/t/trash directory.t5516-fetch-push/child1/.git/
==9252== Invalid read of size 4
==9252== at 0x80E6E00: copy_ref (remote.c:904)
==9252== by 0x80E7949: get_fetch_map (remote.c:1355)
==9252== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==9252== by 0x8060741: cmd_clone (builtin-clone.c:515)
==9252== by 0x804B5AA: handle_internal_command (git.c:257)
==9252== by 0x804B77D: main (git.c:454)
==9252== Address 0x4383650 is 80 bytes inside a block of size 82 alloc'd
==9252== at 0x402425F: calloc (vg_replace_malloc.c:467)
==9252== by 0x8108080: xcalloc (wrapper.c:82)
==9252== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==9252== by 0x80B85A1: get_remote_heads (connect.c:96)
==9252== by 0x80FF05B: get_refs_via_connect (transport.c:502)
==9252== by 0x80FDA6D: transport_get_remote_refs (transport.c:1084)
==9252== by 0x806072A: cmd_clone (builtin-clone.c:304)
==9252== by 0x804B5AA: handle_internal_command (git.c:257)
==9252== by 0x804B77D: main (git.c:454)
==9252==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:get_fetch_map
fun:wanted_peer_refs
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==9252== Invalid read of size 4
==9252== at 0x80E6E00: copy_ref (remote.c:904)
==9252== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==9252== by 0x8060111: cmd_clone (builtin-clone.c:555)
==9252== by 0x804B5AA: handle_internal_command (git.c:257)
==9252== by 0x804B77D: main (git.c:454)
==9252== Address 0x4383728 is 80 bytes inside a block of size 82 alloc'd
==9252== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==9252== by 0x81081E6: xmalloc (wrapper.c:20)
==9252== by 0x80E6E1A: copy_ref (remote.c:905)
==9252== by 0x80E7949: get_fetch_map (remote.c:1355)
==9252== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==9252== by 0x8060741: cmd_clone (builtin-clone.c:515)
==9252== by 0x804B5AA: handle_internal_command (git.c:257)
==9252== by 0x804B77D: main (git.c:454)
==9252==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
==9252== Invalid read of size 4
==9252== at 0x80E6E00: copy_ref (remote.c:904)
==9252== by 0x80E6E62: copy_ref (remote.c:910)
==9252== by 0x80E6F6D: guess_remote_head (remote.c:1664)
==9252== by 0x8060111: cmd_clone (builtin-clone.c:555)
==9252== by 0x804B5AA: handle_internal_command (git.c:257)
==9252== by 0x804B77D: main (git.c:454)
==9252== Address 0x43837b8 is 88 bytes inside a block of size 91 alloc'd
==9252== at 0x402425F: calloc (vg_replace_malloc.c:467)
==9252== by 0x8108080: xcalloc (wrapper.c:82)
==9252== by 0x80E7023: alloc_ref_with_prefix (remote.c:887)
==9252== by 0x80E7956: get_fetch_map (remote.c:1357)
==9252== by 0x805F405: wanted_peer_refs (builtin-clone.c:343)
==9252== by 0x8060741: cmd_clone (builtin-clone.c:515)
==9252== by 0x804B5AA: handle_internal_command (git.c:257)
==9252== by 0x804B77D: main (git.c:454)
==9252==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:copy_ref
fun:copy_ref
fun:guess_remote_head
fun:cmd_clone
fun:handle_internal_command
fun:main
}
* FAIL 55: push into aliased refs (inconsistent)
mk_test heads/master &&
mk_child child1 &&
mk_child child2 &&
(
cd child1 &&
git branch foo &&
git symbolic-ref refs/heads/bar refs/heads/foo
git config receive.denyCurrentBranch false
) &&
(
cd child2 &&
>path2 &&
git add path2 &&
test_tick &&
git commit -a -m child2 &&
git branch foo &&
>path3 &&
git add path3 &&
test_tick &&
git commit -a -m child2 &&
git branch bar &&
test_must_fail git push ../child1 foo bar 2>stderr &&
grep "refusing inconsistent update" stderr
)
* failed 45 among 55 test(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment