mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
add tripwire test for non-readable files in .hg
Summary: Add a test that ensures all files under .hg are readable by everyone. This hopefully will help prevent future issues similar to S247829 (0600 permissions for .hg/hgrc.dynamic). Reviewed By: yancouto Differential Revision: D31811425 fbshipit-source-id: 55f5f2bef7b1a6f5eea4f09f153a7eb2468462b3
This commit is contained in:
parent
e842e3ffaf
commit
452ec93f7c
10
eden/scm/tests/test-readable-permissions.t
Normal file
10
eden/scm/tests/test-readable-permissions.t
Normal file
@ -0,0 +1,10 @@
|
||||
#chg-compatible
|
||||
|
||||
$ configure modernclient
|
||||
|
||||
$ newclientrepo repo
|
||||
$ echo a > a
|
||||
$ hg ci -Amq a
|
||||
|
||||
Test that we don't accidentally write non-readable files.
|
||||
$ find . -not -perm -0444
|
Loading…
Reference in New Issue
Block a user