diff options
Diffstat (limited to 'git')
| -rwxr-xr-x | git/yaml_validation.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/git/yaml_validation.py b/git/yaml_validation.py index 2b5c8ed49..69fd455a5 100755 --- a/git/yaml_validation.py +++ b/git/yaml_validation.py @@ -47,7 +47,12 @@ def main():              print "+++++++ Received: %s" % file_mod -            if not file_mod.endswith('.yml') and not file_mod.endswith('.yaml') and not os.path.islink(file_mod): +            # if the file extensions is not yml or yaml, move along. +            if not file_mod.endswith('.yml') and not file_mod.endswith('.yaml'): +                continue + +            # We use symlinks in our repositories, ignore them. +            if os.path.islink(file_mod):                  continue              try: | 
