Skip to content

Commit 4ed772a

Browse files
committed
Fix interactive rebasing
1 parent c4725b1 commit 4ed772a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 radix.ai
3+
Copyright (c) 2020 radix.ai
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Add the following to your `.pre-commit-config.yaml` file:
2929
default_stages: [commit, manual]
3030
repos:
3131
- repo: https://github.com/radix-ai/auto-smart-commit
32-
rev: v1.0.1
32+
rev: v1.0.2
3333
hooks:
3434
- id: auto-smart-commit
3535
```

auto-smart-commit.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010

1111
def run_command(command: str) -> str:
12-
stdout: str = check_output(command.split()).decode("utf-8").strip()
12+
try:
13+
stdout: str = check_output(command.split()).decode("utf-8").strip()
14+
except Exception:
15+
stdout = ""
1316
return stdout
1417

1518

0 commit comments

Comments
 (0)