Re: [tor-dev] Git users, enable fsck by default!
On 02/02/16 18:56, Peter Palfrader wrote: > On Tue, 02 Feb 2016, Nick Mathewson wrote: > >> The tl;dr here is: >>* By default Git doesn't verify the sha1 checksums it receives by default. >>* It doesn't look like we've got any inconsistencies in our >> repositories I use, though. That's good! >>* To turn on verification, I think you run: >> >> git config --add transfer.fsckobjects true >> git config --add fetch.fsckobjects true >> git config --add receive.fsckobjects true > > I suspect that setting things globally (in your ~/.gitconfig) > git config --global --add transfer.fsckobjects true > git config --global --add fetch.fsckobjects true > git config --global --add receive.fsckobjects true > might also work. (However, I haven't verified it.) > Tested with $ for i in transfer fetch receive; do git config --global --replace-all "$i.fsckObjects" true; done (--replace-all makes it idempotent). I wrote "fsckObjects" because it's quicker to verify - the man page for git-config says fsckObjects rather than fsckobjects and then you need to do some extra digging to assure yourself it's case-insensitive. X -- GPG: ed25519/56034877E1F87C35 GPG: rsa4096/1318EFAC5FBBDBCE git://github.com/infinity0/pubkeys.git signature.asc Description: OpenPGP digital signature ___ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
Re: [tor-dev] Git users, enable fsck by default!
> I suspect that setting things globally (in your ~/.gitconfig) > git config --global --add transfer.fsckobjects true > git config --global --add fetch.fsckobjects true > git config --global --add receive.fsckobjects true > might also work. (However, I haven't verified it.) You only need the first (transfer.fsckobjects). According to both the thread and git's man page the other two adopt its value ("If not set, the value of transfer.fsckObjects is used instead."). ___ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
[tor-dev] Git users, enable fsck by default!
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813157 for more information why. The tl;dr here is: * By default Git doesn't verify the sha1 checksums it receives by default. * It doesn't look like we've got any inconsistencies in our repositories I use, though. That's good! * To turn on verification, I think you run: git config --add transfer.fsckobjects true git config --add fetch.fsckobjects true git config --add receive.fsckobjects true peace, -- Nick ___ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
Re: [tor-dev] Git users, enable fsck by default!
On Tue, 02 Feb 2016, Nick Mathewson wrote: > The tl;dr here is: >* By default Git doesn't verify the sha1 checksums it receives by default. >* It doesn't look like we've got any inconsistencies in our > repositories I use, though. That's good! >* To turn on verification, I think you run: > > git config --add transfer.fsckobjects true > git config --add fetch.fsckobjects true > git config --add receive.fsckobjects true I suspect that setting things globally (in your ~/.gitconfig) git config --global --add transfer.fsckobjects true git config --global --add fetch.fsckobjects true git config --global --add receive.fsckobjects true might also work. (However, I haven't verified it.) Cheers, -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal https://www.palfrader.org/ | `. `' Operating System | `-https://www.debian.org/ ___ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev