"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Omar Polo <op@omarpolo.com>
Subject:
got send vs symlinks
To:
gameoftrees@openbsd.org
Date:
Wed, 22 Sep 2021 11:40:06 +0200

Download raw body.

Thread
Hello,

I've come across another instance where `got send' doesn't seem to
assemble the packfile correctly, this time using symlink.

The full reproducible example follows, but the gist is that `got send'
fails to upload a commit that includes an added symlink to a file
already in the repository.  `git push' works with the commit produced by
`got ci'.

Thanks,

Omar Polo


% echo 'hello there' > regular-file
% got add regular-file
A  regular-file
% got ci -m 'added a regular file' regular-file
A  regular-file
Created commit dcc021340d50824cc5fb99e9a87b2dc7b269e671
% ln -s regular-file symlink
% got add symlink
A  symlink
% got ci -m 'added a symlink' symlink
A  symlink
Created commit 3018b22349d1547665ce292f2e543f9055a8f394
% got send
Connecting to "origin" git@omarpolo.com
packing 1 reference; 5 objects; deltify: 100%; uploading pack:    562B 100%fatal: missing blob object 'b844002558b5c724cf8a667b4b8c52366e04766a'
fatal: missing blob object 'b844002558b5c724cf8a667b4b8c52366e04766a'
got-send-pack: unexpected message from server

got: bad packet received
%