Closed cwoeltge closed 9 years ago
@cwoeltge: hmm... Thanks for the report. I'l check it out soon.
@cwoeltge: ok, actually, it's test script that is wrong.
Hook will receive one line per ref updated. However, it can be more than one commit in between of "Old value" and "New value".
Correct implementation of test script should contains git show $from_ref..$to_ref
instead of git show $to_ref
.
That makes sense than! Thanks for looking into.
When I push multiple commits in one push I'm always getting only the latest commit message and diff. Reading the test script I would assume the while would return multiple lines, one per commit pushed.
Am I under a wrong assumption or is there some regression?
Setup: Stash 3.1.1, external-hooks 2.0-1
Test script output
... where
Ref update
is always only once, never multiple times. My expectation was to see this once for each commit.(p.s. thanks for the great hook :)