On Sun, 2010-08-01 at 00:25 -0400, Dave Jones wrote:
Check this out..
(00:13:25:davej@gelk:kernel)$ fedpkg -v upload patch-2.6.35-rc6-git6.bz2
Creating module object from /mnt/data/src/fedora/kernel
Uploading: f73d01927a3150e729b44add5ea4923c patch-2.6.35-rc6-git6.bz2
Running curl -k --cert /home/davej/.fedora.cert --fail -o /dev/null --show-error
--progress-bar -F name=kernel -F md5sum=f73d01927a3150e729b44add5ea4923c -F
file=(a)patch-2.6.35-rc6-git6.bz2
https://pkgs.fedoraproject.org/repo/pkgs/upload.cgi
directly on the tty
######################################################################## 100.0%
Source upload succeeded. Don't forget to commit the sources file
(00:13:35:davej@gelk:kernel)$ git fsck --full
(00:13:59:davej@gelk:kernel)$ cat sources
10eebcb0178fb4540e2165bfd7efc7ad linux-2.6.34.tar.bz2
1205481c8d1b5ccecad87840ddaeaf81 patch-2.6.35-rc6.bz2
6488f89f618d7e03af865534b31d3419 patch-2.6.35-rc6-git5.bz2
f73d01927a3150e729b44add5ea4923c patch-2.6.35-rc6-git6.bz2
(00:14:02:davej@gelk:kernel)$ vim sources
(00:14:05:davej@gelk:kernel)$ cat sources
10eebcb0178fb4540e2165bfd7efc7ad linux-2.6.34.tar.bz2
1205481c8d1b5ccecad87840ddaeaf81 patch-2.6.35-rc6.bz2
f73d01927a3150e729b44add5ea4923c patch-2.6.35-rc6-git6.bz2
(00:14:06:davej@gelk:kernel)$ git fsck --full
(00:14:43:davej@gelk:kernel)$ git commit -a
[master 89d0d88] 2.6.35-rc6-git6
3 files changed, 6 insertions(+), 2 deletions(-)
(00:16:40:davej@gelk:kernel)$ git fsck --full
dangling blob 64802926167a6aef0d71a5e6de35f0857674947b
git show on that blob shows the variant of 'sources' before I removed
the git5 entry. It seems if there's a pending staged commit to a file,
and then you modify it, git loses its shit.
That's not "corruption", that's just an unreferenced object, which does
no harm except to waste space. "git gc" will delete such objects.
--
Matt