Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update-git-configs: 'SAFE_CONFIG'...

allow macros to ease the pain of UNSAFE_PATT

See http://sitaramc.github.com/gitolite/git-config.html or equivalent.
  • Loading branch information...
commit 4cf55a52b40ace6d5e6347c6809988b03b0dce61 1 parent 089f0f9
@sitaramc authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/triggers/post-compile/update-git-configs
View
3  src/triggers/post-compile/update-git-configs
@@ -49,6 +49,9 @@ sub fixup_config {
while ( my ( $key, $value ) = each( %{$gc} ) ) {
next if $key =~ /^gitolite-options\./;
if ( $value ne "" ) {
+ while ( my ($mk, $mv) = each %{ $rc{SAFE_CONFIG} } ) {
+ $value =~ s/%$mk/$mv/g;
+ }
system( "git", "config", "--file", "$RB/$pr.git/config", $key, $value );
} else {
system( "git", "config", "--file", "$RB/$pr.git/config", "--unset-all", $key );
Please sign in to comment.
Something went wrong with that request. Please try again.