Skip to content

Commit

Permalink
fix: follow only makes sense when file is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Mar 1, 2018
1 parent 29321a3 commit b51ef1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/commands/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def run(self, *args, file_path=None, **kwargs):

def run_async(self, file_path=None, **kwargs):
savvy_settings = sublime.load_settings("GitSavvy.sublime-settings")
follow = savvy_settings.get("log_follow_rename")
follow = savvy_settings.get("log_follow_rename") if file_path else False
show_log_panel(
self.log_generator(file_path=file_path, follow=follow, **kwargs),
lambda commit: self.on_done(commit, file_path=file_path, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion core/commands/log_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_graph_args(self):
savvy_settings = sublime.load_settings("GitSavvy.sublime-settings")
args = savvy_settings.get("git_graph_args")
follow = savvy_settings.get("log_follow_rename")
if follow:
if self._file_path and follow:
args = args + ["--follow"]
if self._file_path:
file_path = self.get_rel_path(self._file_path)
Expand Down

0 comments on commit b51ef1d

Please sign in to comment.