Skip to content

Commit

Permalink
fix the comments to match the current behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiscry committed Dec 2, 2011
1 parent 54f5906 commit edb868f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions hooks/common/post-receive.mirrorpush
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ die() { echo post-receive.mirrorpush: "$@" >&2; exit 1; }
# if you don't do this, git-shell sometimes dies of a signal 13 (SIGPIPE)
[ -t 0 ] || cat >/dev/null

# even slaves have post-receive hooks, but due to the way the push happens, we
# don't have GL_REPO set. So we detect that generic situation and bail...
# even slaves have post-receive hooks, so we bail when a mirrored push happens
[ -n "$GL_BYPASS_UPDATE_HOOK" ] && exit 0
# CAUTION: this means that a server-side push (bypassing gitolite) will not be
# mirrored automatically because (a) we don't know GL_REPO (we can deduce it
# but we won't!), and (b) we can't distinguish easily between that and this
# case (the slave receiving a mirror push case)

# CAUTION: a server-side push (bypassing gitolite) will not be mirrored
# automatically because we don't know GL_REPO (we can deduce it but we won't!)
[ -z "$GL_REPO" ] && die GL_REPO not set
[ -z "$GL_BINDIR" ] && die GL_BINDIR not set

Expand Down

0 comments on commit edb868f

Please sign in to comment.