Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #362076 +++ In the cloned bug, I mentioned that the default when git init --shared was used, was to automatically set denyNonFastforwards = true. But ... I checked ... and appears not to be the case for all our git repos. Not sure how they were created ... but I did a little "survey" and found there are 53 that have sharedrepository = 1 but do NOT have denyNonFastforwards = true. I did this just using "grep" so, might not be perfect, but, from the main git directory, grep --include=config -r "sharedrepository.*1" * 2>&1 | tee ~/temp/gitshared2.tx resulted in 193 files matching where as grep --include=config -r "denyNonFastforwards.*true" * 2>&1 | tee ~/temp/gitdenyNonFastforwards2.txt resulted in only 140 files matching. Hence, concluded at least 53 missing denyNonFastforwards = true. I suggest the webmasters, somehow, go in and add that configuration flag. From bug 362076 seems this should be non-controversial, but suspect it should be announced in some manner in case some of the effected projects would not be expecting it. I'll attach my results ... but, don't take my word for it ... would be nice if there was some smooth way to do this, rather an a little perl script :) ... but, I'll need to learn a lot more about git before I could suggest anything.
Created attachment 206151 [details] list of files matching denyNonFastforwards = true
Created attachment 206152 [details] list of files matching sharedrepository = 1
See also bug 343150. Maybe this or that are dupes of each other.
Yep, good dup. Opened 6 months ago. Thanks for pointing it out. *** This bug has been marked as a duplicate of bug 343150 ***