1. Fredrik Håård
  2. autohook

Commits

Fredrik Håård  committed 1942550

fixed superuser

  • Participants
  • Parent commits a633cdc
  • Branches default

Comments (0)

Files changed (2)

File README

View file
     Modules to load before running hooks
 tests
     List of tests to run for all repositories
+superuser
+    List of users who are allowed to bypass tests
 repos
     List of repository names
 <reponame>.path 

File autohook/autohook.py

View file
         #if superuser is set and matches, bypass hooks
         if user in ui.configlist('autohook', 'superuser'):
             info("User %s bypassing hooks" % (user,))
+            return False
         
         #load configured modules
         _load_modules(ui)