Matthias Sohn
d3e61db455
Fix pre-push hook to not set null remoteName as first argument
According to [1] the pre-push hook expects two parameters which provide the name and location of the destination remote, if a named remote is not being used both values should be the same. We did set the first parameter to null in that case which caused ProcessBuilder to throw a NullPointerException since its start() method doesn't accept null arguments. [1] https://git-scm.com/docs/githooks#_pre_push Bug: 482393 Change-Id: Idb9b0a48cefac01abfcfdf00f6d173f8fa1d9a7b Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> |
8 years ago | |
---|---|---|
.. | ||
CommitMsgHook.java | Support for the commit-msg hook. | 9 years ago |
GitHook.java | Refactored pre-commit hook to make it less invasive. | 9 years ago |
Hooks.java | Add support for pre-push hooks | 8 years ago |
PreCommitHook.java | Refactored pre-commit hook to make it less invasive. | 9 years ago |
PrePushHook.java | Fix pre-push hook to not set null remoteName as first argument | 8 years ago |