Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bugfix: don't delete description file when running perms

thanks to drue on #gitolite for catching it
  • Loading branch information...
commit f1c69a3ec0bea287103232d2b2298c7ed51f336f 1 parent 2741fad
Sitaram Chamarty authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 src/triggers/post-compile/update-gitweb-access-list
6 src/triggers/post-compile/update-gitweb-access-list
@@ -6,8 +6,10 @@
6 6
7 7 # ----------------------------------------------------------------------
8 8 # delete the 'description' file that 'git init' created if this is run from
9   -# the post-create trigger
10   -[ "$1" = "POST_CREATE" ] && rm -f $GL_REPO_BASE/$2.git/description 2>/dev/null
  9 +# the post-create trigger. However, note that POST_CREATE is also called from
  10 +# perms (since POST_CREATE doubles as eqvt of POST_COMPILE to propagate ad hoc
  11 +# permissions changes for wild repos) and then you should not delete it.
  12 +[ "$1" = "POST_CREATE" ] && [ "$4" != "perms" ] && rm -f $GL_REPO_BASE/$2.git/description 2>/dev/null
11 13
12 14 # ----------------------------------------------------------------------
13 15 # skip if arg-1 is POST_CREATE and no arg-3 (user name) exists; this means

0 comments on commit f1c69a3

Please sign in to comment.
Something went wrong with that request. Please try again.