{"thread":{"id":"29505","subject":"Bug report: stash in upstream caused remote fetch to fail","startedAt":"2012-02-01T16:59:53Z","lastAt":"2012-02-01T22:37:44Z","messageCount":2,"participants":["Andrew Walrond"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"183492","messageId":"20120201165952.GA16263@proteus","threadId":"29505","inReplyTo":null,"subject":"Bug report: stash in upstream caused remote fetch to fail","fromName":"Andrew Walrond","fromEmail":"andrew@walrond.org","sentAt":"2012-02-01T16:59:53Z","receivedAt":"2012-02-01T16:59:53Z","isPatch":false,"sender":{"key":"andrew@walrond.org","avatar":null},"body":"A bit of cut and paste will explain better than me...\n\nLOCAL $ git remote update\n    Fetching origin\n    remote: Counting objects: 25, done.\n    remote: Compressing objects: 100% (12/12), done.\n    remote: Total 13 (delta 10), reused 0 (delta 0)\n    Unpacking objects: 100% (13/13), done.\n    fatal: bad object fa0da15b2ea5cc3e4eb9ed414b99d6a9d7da7864\n    error: git://git.heresymail.org/lib%2Fmpfr did not send all necessary\n    objects\n\nUPSTREAM $ git fsck\n    dangling blob ded848b21db04fcadf77a4a5d9f81955b4315c9f\n    dangling blob 9c3976919b3cee56eabc3c9c9dfe5d223ce32686\n    dangling blob e17ab25a3a91bed830ddb06da4af1132434d5ee4\n    dangling blob 20a612ab361058838f680d72c1f4f8cb462ce1a2\n\nUPSTREAM $ git gc\n    Counting objects: 974, done.\n    Delta compression using up to 8 threads.\n    Compressing objects: 100% (954/954), done.\n    Writing objects: 100% (974/974), done.\n    Total 974 (delta 572), reused 0 (delta 0)\n\nLOCAL $ git remote update\n    Fetching origin\n    remote: Counting objects: 25, done.\n    remote: Compressing objects: 100% (10/10), done.\n    remote: Total 13 (delta 3), reused 11 (delta 2)\n    Unpacking objects: 100% (13/13), done.\n    fatal: bad object fa0da15b2ea5cc3e4eb9ed414b99d6a9d7da7864\n    error: git://git.heresymail.org/lib%2Fmpfr did not send all necessary\n    objects\n\nLOCAL $ DELETE LOCAL REPO\n\nLOCAL $ git clone <upstream>\n    Cloning into bare repository '/src/lib/mpfr'...\n    remote: Counting objects: 972, done.\n    remote: Compressing objects: 100% (382/382), done.\n    remote: Total 972 (delta 570), reused 971 (delta 570)\n    Receiving objects: 100% (972/972), 2.01 MiB, done.\n    Resolving deltas: 100% (570/570), done.\n    error: refs/stash does not point to a valid object!\n\nUPSTREAM $ git stash list\n    stash@{0}: WIP on (no branch): f648dd0 Import 3.1.0 from tarball\n\nUPSTREAM $ git stash clear\n\nLOCAL $ DELETE LOCAL REPO\n\nLOCAL $ git clone <upstream>\n    Cloning into bare repository '/src/lib/mpfr'...\n    remote: Counting objects: 972, done.\n    remote: Compressing objects: 100% (382/382), done.\n    remote: Total 972 (delta 570), reused 971 (delta 570)\n    Receiving objects: 100% (972/972), 2.01 MiB, done.\n    Resolving deltas: 100% (570/570), done.\n\nUPSTREAM $ git version\n    git version 1.7.8.2\n\nLOCAL $ git version\n    git version 1.7.8.2\n\nHope that's useful!\n\nAndrew Walrond\n"},{"id":"183510","messageId":"20120201223743.GC2431@localhost.localdomain","threadId":"29505","inReplyTo":"874nvap9hj.fsf@thomas.inf.ethz.ch","subject":"Re: Bug report: stash in upstream caused remote fetch to fail","fromName":"Andrew Walrond","fromEmail":"andrew@walrond.org","sentAt":"2012-02-01T22:37:44Z","receivedAt":"2012-02-01T22:37:44Z","isPatch":false,"sender":{"key":"andrew@walrond.org","avatar":null},"body":"On Wed, Feb 01, 2012 at 09:46:48PM +0100, Thomas Rast wrote:\n> \n> Do you, by any chance, still have a copy of the upstream repo before you\n> trashed the stash?  It would be interesting to know whether there was\n> actually some repository corruption going on (that went unnoticed by\n> fsck, no less) or if there was a bug in the transmission.\n\nI tried to reproduce the problem but without success :(\nDisk corruption is unlikely - raided drives etc etc. More likely stash\nrelated somehow as I was applying patches manually on older versions\nchecked out in a temp branch, stashing the results then applying the\nstash onto master/HEAD.\nBut why was a remote clone involved with the upstream stash at all I\nwonder??\n\nAndrew Walrond\n"}]}