Skip to content

Commit 9f97d10

Browse files
committed
Explain get_new_commits behaviour at pre-receive hook
1 parent e180b6c commit 9f97d10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎igcommit/git.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ def __eq__(self, other):
5050

5151
defget_new_commits(self):
5252
"""Get the list of parent new commits in order"""
53+
54+
# At pre-receive hook we get one id for each branch pushed and need to
55+
# find commits to be tested. With the test command from the README.md
56+
# this returns nothing.
5357
output=check_output([
5458
git_exe_path,
5559
'rev-list',

0 commit comments

Comments
(0)