Markus Keller
8420c729a0
Make PrePushHook properly terminate ref lines
All of the input lines passed to pre-push hook scripts must be properly terminated by '\n', so that normal shell scripts like the git-supplied pre-push.sample work properly, even when pushing just a single branch. With the old code, hook scripts that use the following pattern didn't process the last line, because 'read' has a non-zero exit status when EOF is encountered: while read local_ref local_sha remote_ref remote_sha; do ... done Change-Id: Id899662ed3fedef6c314fc4b2ddf91a6dcb98cbb Signed-off-by: Markus Keller <markus.kell.r@gmail.com> |
пре 5 година | |
---|---|---|
.. | ||
CommitMsgHook.java | Fix javadoc in org.eclipse.jgit hooks package | пре 6 година |
GitHook.java | Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 | пре 5 година |
Hooks.java | Don't throw if a pre-push hook is ignored. | пре 6 година |
PostCommitHook.java | Fix javadoc in org.eclipse.jgit hooks package | пре 6 година |
PreCommitHook.java | Fix javadoc in org.eclipse.jgit hooks package | пре 6 година |
PrePushHook.java | Make PrePushHook properly terminate ref lines | пре 5 година |