News for hackers. Stuff that matters.
Re:Too Perfect a Mirror by rmc on Sunday March 24, 2013 @07:02AM (#5431711)
There are security considerations with that approach. Someone could have edited their copy of the repo and put in any code they wanted. If you presume the person isn't lying, and trust their code, you've just been back doored.
Re:Too Perfect a Mirror by XorNot on Sunday March 24, 2013 @07:47AM (#5431784)
Git uses a rolling SHA-1 checksum which describes both content and commit logs. As long as they had the hashes of the commits, then they can be sure that anyone who has a chain of commits leading to that hash has the real content.
Re:Too Perfect a Mirror by rmc on Sunday March 24, 2013 @03:16PM (#5433142)
Yeah, but now you need to know the commit hash for all the branches. Basically, you need a form of backup. But this problem presumes you don't have much of a backup.
Re:Too Perfect a Mirror by XorNot on Sunday March 24, 2013 @09:34PM (#5434792)
Oh sure, but at the end of the day some developer or group of developers is in charge of those repositories, and considered a trusted person (or effectively is).

Between them and the large number of developers who would have copies of the repo, reaching consensus on what the "true" repo was - while not easy - could be done in a secure fashion due to the hashes. You wouldn't have people declaring "no it's totally it" and not being able to verify.