Fix issue in git hook script in rbtools
Review Request #7129 — Created March 27, 2015 and submitted
Information | |
---|---|
tienv | |
RBTools | |
master | |
3824 | |
a744310... | |
Reviewers | |
rbtools, reviewboard | |
When pushing with git with the two server-side git hook scripts in rbtools/contrib/tools, a Python TypeError is raised. This is due to an incorrect function call in the get_commit_hashes function in rbtools/hooks/git.py. Changing this call to return a list fixes the issue
I tested on my computer, by creating two local repositories, one pointing to the other one with the following configurations:
- git remote add <path_to_other_local_git_repo> to the pushing repo
- git config receive.denyCurrentBranch ignore to the receiving repoI also installed the 2 server side hooks in contrib/tools on the pushing side.
The scripts work as intended after the fix.
Description | From | Last Updated |
---|---|---|
I'm confused. The old behaviour should be returning a list of lines. What makes the old behaviour fail? |
|
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+3 -2) |

-
Tool: Pyflakes Processed Files: rbtools/hooks/git.py Tool: PEP8 Style Checker Processed Files: rbtools/hooks/git.py
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+3 -1) |

-
Tool: Pyflakes Processed Files: rbtools/hooks/git.py Tool: PEP8 Style Checker Processed Files: rbtools/hooks/git.py
-
Please update the summary and description to be compliant with our guidelines. Also, please put only the bug number in the bugs field, and not the full URL.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 4 (+3 -2) |

-
Tool: Pyflakes Processed Files: rbtools/hooks/git.py rbtools/clients/git.py Tool: PEP8 Style Checker Processed Files: rbtools/hooks/git.py rbtools/clients/git.py
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 5 (+1 -2) |

-
Tool: Pyflakes Processed Files: rbtools/hooks/git.py Tool: PEP8 Style Checker Processed Files: rbtools/hooks/git.py
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 6 (+1 -1) |

-
Tool: Pyflakes Processed Files: rbtools/hooks/git.py Tool: PEP8 Style Checker Processed Files: rbtools/hooks/git.py
Description: |
|
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
-
-
rbtools/hooks/git.py (Diff revision 6) I'm confused. The old behaviour should be returning a list of lines. What makes the old behaviour fail?