Skip to content

Commit

Permalink
Merge pull request #12 from ilkka/patch-1
Browse files Browse the repository at this point in the history
Explicitly make global variables global
  • Loading branch information
jandre committed Dec 7, 2015
2 parents 85324c1 + 3b46e97 commit 1644cee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions safe-commit-hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def match_patterns(patterns, files, whitelist=None):
exit(1)

def main():
global DEFAULT_PATTERNS, REPO_ROOT, WHITELIST
DEFAULT_PATTERNS = os.path.expanduser('~/.safe-commit-hook/git-deny-patterns.json')
REPO_ROOT = get_repo_root()
WHITELIST = os.path.join(REPO_ROOT, '.git-safe-commit-ignore')
Expand Down

0 comments on commit 1644cee

Please sign in to comment.