Permalink
Browse files
Fix error when there is no git
- Loading branch information...
Showing
with
2 additions
and
0 deletions.
-
+2
−0
git_helper.py
|
@@ -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