Skip to content

Commit 70c0a19

Browse files
author
Tod Beardsley
committed
Be explicit about which mode we're in.
[SeeRM rapid7#8779]
1 parent 4ce2203 commit 70c0a19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/dev/pre-commit-hook.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ def merge_error_message
3333

3434
# Who called us? If it's a post-merge check things operate a little
3535
# differently.
36+
puts "[*] Running msftidy.rb in #{$0} mode"
3637

3738
case $0
3839
when /post-merge/
3940
base_caller = :post_merge
4041
when /pre-commit/
41-
base_caller = :post_commit
42+
base_caller = :pre_commit
4243
else
4344
base_caller = :msftidy
4445
end

0 commit comments

Comments
 (0)