Permalink
Browse files

Cleaning up assign and clearer language in the assert.

  • Loading branch information...
1 parent 385d309 commit 4dfda9e5518f49bd2d5873dc30378a4aa4f0c839 @F1LT3R F1LT3R committed Mar 17, 2015
Showing with 4 additions and 4 deletions.
  1. +4 −4 sprintly
View
@@ -587,12 +587,12 @@ class SprintlyTool:
# ensure the current directory is a git repository
directory = os.getcwd()
- hooks_directory = os.path.join(directory, '.git', 'hooks')
- if not os.path.isdir(directory):
+ git_directory = os.path.join(directory, '.git')
+ if not os.path.isdir(git_directory):
raise SprintlyException('This command can only be run from the root of a git repository.')
+ hooks_directory = os.path.join(git_directory, 'hooks')
if not os.path.isdir(hooks_directory):
- raise SprintlyException('You do not appear to have a hooks/ directory in your .git/ directory.')
-
+ raise SprintlyException('You do not appear to have a .git/hooks directory in your git repository.')
# ensure hook is installed
if not os.path.isfile(HOOK_PATH):
raise SprintlyException('Please run \'sprintly --update\' first to install the hook.')

0 comments on commit 4dfda9e

Please sign in to comment.