Skip to content

Commit

Permalink
Fix interactive rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber committed Aug 16, 2020
1 parent c4725b1 commit 4ed772a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 radix.ai
Copyright (c) 2020 radix.ai

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Add the following to your `.pre-commit-config.yaml` file:
default_stages: [commit, manual]
repos:
- repo: https://github.com/radix-ai/auto-smart-commit
rev: v1.0.1
rev: v1.0.2
hooks:
- id: auto-smart-commit
```
Expand Down
5 changes: 4 additions & 1 deletion auto-smart-commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@


def run_command(command: str) -> str:
stdout: str = check_output(command.split()).decode("utf-8").strip()
try:
stdout: str = check_output(command.split()).decode("utf-8").strip()
except Exception:
stdout = ""
return stdout


Expand Down

0 comments on commit 4ed772a

Please sign in to comment.