Skip to content
This repository was archived by the owner on Mar 31, 2022. It is now read-only.

Commit b6277d9

Browse files
committed
Update sample script for RM integration
Capture the exit code so RubyMine doesn't continue to execute post-commit steps after failure
1 parent 7d0b35a commit b6277d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ The trick then is that `pair-commit` doesn't encompass all git functionality, so
5959
```ruby
6060
#!/usr/bin/env ruby
6161

62-
if ARGV[1] == "commit"
62+
exit_code = if ARGV[1] == "commit"
6363
system "git pair-commit #{ARGV[1..-1].join(" ")}"
6464
else
6565
system "git #{ARGV.join(" ")}"
6666
end
67+
68+
exit exit_code
6769
```
6870
Make sure it's executable.
6971

0 commit comments

Comments
 (0)