From 44c6676070bf7ce6fd913d5b5f0c55b4a44cb90b Mon Sep 17 00:00:00 2001 From: "Evan J. Felix" Date: Fri, 17 Mar 2017 14:37:10 -0700 Subject: [PATCH] more fixes for syntax checking --- pre_commit_hooks/no_commit_to_branch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit_hooks/no_commit_to_branch.py b/pre_commit_hooks/no_commit_to_branch.py index 342578f..ed66856 100644 --- a/pre_commit_hooks/no_commit_to_branch.py +++ b/pre_commit_hooks/no_commit_to_branch.py @@ -3,12 +3,12 @@ from __future__ import print_function import argparse import sys -import util +from pre_commit_hooks.util import cmd_output def is_on_branch(protected): retval = False - branch = util.cmd_output('git', 'symbolic-ref', 'HEAD') + branch = cmd_output('git', 'symbolic-ref', 'HEAD') chunks = branch.strip().split('/') if chunks[2] == protected: retval = True