Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
yankeexe committed Nov 28, 2024
1 parent bf2937e commit ea67cb4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ai_commit/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,16 @@ def interaction_loop(staged_changes: str):

def run():
try:
if not run_command(commands["is_git_repo"]):
print("\n\n🐙 Not a git repo.")
run_command(commands["is_git_repo"]):
staged_changes = run_command(commands["get_stashed_changes"])

if not staged_changes:
print("\n🗂️ No staged changes")
sys.exit(1)

staged_changes = run_command(commands["get_stashed_changes"])
if args.debug:
print(staged_changes)
print("-" * 50)
if not staged_changes:
print("\n🗂️ No staged changes")
sys.exit(1)

interaction_loop(staged_changes)
except KeyboardInterrupt:
Expand Down

0 comments on commit ea67cb4

Please sign in to comment.