Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: post-update hook · Junio C Hamano <hidden> · 2016-06-15

Re: post-update hook

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:39

"Jeremy Ramer" [off-list ref] writes:
I had to make one change to this example to get it to work.  I'll put
it here for completeness

#!/bin/sh
case "$*" in
"refs/remotes/origin/master")
    cd ..
    GIT_DIR=".git"
    git merge refs/remotes/origin/master
    ;;
esac
Yeah, thanks for correction.  My bad not resetting GIT_DIR.

By the way, I _did_ write these seemingly extra spaces around $* and the
refname on purpose.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help