all repos — website @ 9077f5ac84045a080462be78e598cb6c25ad2f35

personal website hosted at prithu.xyz, built using hugo

fix gpg.txt link
Prithu Goswami prithugoswami524@gmail.com
Thu, 14 Jan 2021 18:04:42 +0530
commit

9077f5ac84045a080462be78e598cb6c25ad2f35

parent

ae15149d3ae8d705b9243c33b03b3c93fc4096de

2 files changed, 17 insertions(+), 6 deletions(-)

jump to
M content/posts/git-remote-hooks.mdcontent/posts/git-remote-hooks.md

@@ -71,10 +71,21 @@

We also have server-side hooks that live on the remote's bare repository. `pre-recieve` hook runs before refs are updated on the remote. The script can exit with a non-zero code and the push won't be accepted and the client will be -notified. `post-recieve` on the other hand runs when all the refs are updated -on the remote. This hook can be thought of as a hook that runs when there is a -'push'. This hook gets information of what refs were updated - if the master -branch was updated then this information is passed on to the script along with -the last hash and the new updated hash. +notified of the failure. `post-recieve` on the other hand runs when all the +refs are updated on the remote. This hook can be thought of as a hook that runs +when there is a 'push'. This hook gets information of what refs were updated - +if the master branch was updated then this information is passed on to the +script along with the last hash and the new updated hash. This information is +passed on to the script through the standard input. For example the +`post-recieve` script would have the following line would be passed to the +stdin. + +``` +689d4729b362e69a27600bb5bc26ca043c67f49f c60d357c48be63ff8ad8a6f94ab2f525332a9cd7 refs/heads/master +``` + +`689d472` is the old object hash, `c60d357` is the new hash value and +`refs/heads/master` is the ref being updated. So the `master` branch is now +pointing to `c60d357`
M layouts/partials/footer.htmllayouts/partials/footer.html

@@ -4,7 +4,7 @@ <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">

<img alt="Creative Commons License" style="width:18px;transform:translateY(4px);margin-right:4px" src="/img/cc.svg" /> </a> <a href="https://i.prithu.xyz/resume.pdf">résumé</a> &bull; - <a href="gpg.txt">gpg</a> &bull; + <a href="/gpg.txt">gpg</a> &bull; <a href="mailto:prithugoswami524@gmail.com">Email me</a> &bull; <a href="https://github.com/prithugoswami/personal-website"> View source