~ubuntu-branches/ubuntu/wily/gitolite3/wily

« back to all changes in this revision

Viewing changes to src/triggers/set-default-roles

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2014-10-06 12:30:00 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20141006123000-pzkzr0u220sjmpg7
Tags: 3.6.1-1
New upstream release (Closes: #755784)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
cd $GL_REPO_BASE/$2.git || die "could not cd to $GL_REPO_BASE/$2.git"
14
14
gitolite git-config -r $2 gitolite-options.default.roles | sort | cut -f3 |
15
15
    perl -pe 's/(\s)CREATOR(\s|$)/$1$ENV{GL_USER}$2/' > gl-perms
 
16
 
 
17
# cache control, if rc says caching is on
 
18
gitolite query-rc -q CACHE && perl -I$GL_LIBDIR -MGitolite::Cache -e "cache_control('flush', '$2')";
 
19
 
 
20
exit 0