Skip to content

Commit

Permalink
add top_level attr
Browse files Browse the repository at this point in the history
  • Loading branch information
inconvergent committed May 24, 2017
1 parent ca799b3 commit 0750ea6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fn/fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def __init_repo(self):
from git.repo import Repo

try:
self.repo = Repo(self.cwd, search_parent_directories=True)
repo = Repo(self.cwd, search_parent_directories=True)
self.top_level = repo.git.rev_parse('--show-toplevel')
self.repo = repo
# self.top_level = self.repo.git.rev_parse('--show-toplevel')
except Exception:
# git sha will be '' if we are not in a git repo
Expand Down

0 comments on commit 0750ea6

Please sign in to comment.