the 3 shipped post-create programs should exit when called on a normal repo creation
This commit is contained in:
parent
0f3a09ce60
commit
37e97d29fe
|
@ -16,6 +16,13 @@ use warnings;
|
||||||
my $RB = $rc{GL_REPO_BASE};
|
my $RB = $rc{GL_REPO_BASE};
|
||||||
_chdir($RB);
|
_chdir($RB);
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
# skip if arg-0 is POST_CREATE and no arg-2 (user name) exists; this means
|
||||||
|
# it's been triggered by a *normal* (not "wild") repo creation, which in turn
|
||||||
|
# means a POST_COMPILE should be following so there's no need to waste time
|
||||||
|
# running this once for each new repo
|
||||||
|
exit 0 if @ARGV and $ARGV[0] eq 'POST_CREATE' and not $ARGV[2];
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# if called from POST_CREATE, we have only a single repo to worry about
|
# if called from POST_CREATE, we have only a single repo to worry about
|
||||||
if (@ARGV and $ARGV[0] eq 'POST_CREATE') {
|
if (@ARGV and $ARGV[0] eq 'POST_CREATE') {
|
||||||
|
|
|
@ -2,6 +2,13 @@
|
||||||
|
|
||||||
# this is probably the *fastest* git-daemon update possible.
|
# this is probably the *fastest* git-daemon update possible.
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
# skip if arg-1 is POST_CREATE and no arg-3 (user name) exists; this means
|
||||||
|
# it's been triggered by a *normal* (not "wild") repo creation, which in turn
|
||||||
|
# means a POST_COMPILE should be following so there's no need to waste time
|
||||||
|
# running this once for each new repo
|
||||||
|
[ "$1" = "POST_CREATE" ] && [ -z "$3" ] && exit 0;
|
||||||
|
|
||||||
EO=git-daemon-export-ok
|
EO=git-daemon-export-ok
|
||||||
RB=`gitolite query-rc GL_REPO_BASE`
|
RB=`gitolite query-rc GL_REPO_BASE`
|
||||||
export EO RB
|
export EO RB
|
||||||
|
|
|
@ -4,6 +4,13 @@
|
||||||
# whatever you want and contribute it back, as long as it is upward
|
# whatever you want and contribute it back, as long as it is upward
|
||||||
# compatible.
|
# compatible.
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
# skip if arg-1 is POST_CREATE and no arg-3 (user name) exists; this means
|
||||||
|
# it's been triggered by a *normal* (not "wild") repo creation, which in turn
|
||||||
|
# means a POST_COMPILE should be following so there's no need to waste time
|
||||||
|
# running this once for each new repo
|
||||||
|
[ "$1" = "POST_CREATE" ] && [ -z "$3" ] && exit 0;
|
||||||
|
|
||||||
plf=`gitolite query-rc GITWEB_PROJECTS_LIST`
|
plf=`gitolite query-rc GITWEB_PROJECTS_LIST`
|
||||||
[ -z "$plf" ] && plf=$HOME/projects.list
|
[ -z "$plf" ] && plf=$HOME/projects.list
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue