Permalink
Browse files

Fix error when there is no git

  • Loading branch information...
jisaacks committed Dec 11, 2012
1 parent 329303f commit 11d9225871fa4980c7782a849c3ecd425edbe806
Showing with 2 additions and 0 deletions.
  1. +2 −0 git_helper.py
View
@@ -28,4 +28,6 @@ def git_tree(view):
return git_root(file_parent_dir)
def git_dir(directory):
+ if not directory:
+ return False
return os.path.join(directory, '.git')

0 comments on commit 11d9225

Please sign in to comment.