Skip to content

Commit

Permalink
Revert "Enhancement: check "nothing to commit""
Browse files Browse the repository at this point in the history
This reverts commit bb82c2d.
  • Loading branch information
randy3k committed Dec 25, 2018
1 parent fdadded commit ec7eae2
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions core/commands/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ def run(self, **kwargs):
def run_async(self, repo_path=None, include_unstaged=False, amend=False):

repo_path = repo_path or self.repo_path

# check "nothing to commit"
self.dry_run_commit(repo_path, include_unstaged, amend)

# run `pre-commit` and `prepare-commit-msg` hooks
hooks_path = os.path.join(repo_path, ".git", "hooks")
pre_commit = os.path.join(hooks_path, "pre-commit")
Expand Down Expand Up @@ -120,16 +116,6 @@ def pre_commit_hooks(self, repo_path, include_unstaged, amend):
else:
raise GitSavvyError(e.args[0])

def dry_run_commit(self, repo_path, include_unstaged, amend):
show_panel_overrides = self.savvy_settings.get("show_panel_for")
self.git(
"commit",
"-q" if "commit" not in show_panel_overrides else None,
"-a" if include_unstaged else None,
"--amend" if amend else None,
"--dry-run"
)


class GsCommitInitializeViewCommand(TextCommand, GitCommand):

Expand Down

0 comments on commit ec7eae2

Please sign in to comment.