From 37a6a6a7d36cf55c1d7caa50d9a4959e643196c4 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Thu, 9 Sep 2010 06:52:32 +0530 Subject: [PATCH] towel needed more clarity for people who don't get the continual reference to towels when talking about the "gl-dont-panic" program, all I can say is that your education is incomplete ;-) --- src/gl-dont-panic | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/gl-dont-panic b/src/gl-dont-panic index 9476c96..7bd4ea9 100755 --- a/src/gl-dont-panic +++ b/src/gl-dont-panic @@ -19,13 +19,21 @@ usage() { - (FIX #1: REWINDING BAD ADMIN COMMITS) if your last commit(s) to the gitolite-admin repo pushed a very bad config and you want to rewind it to a known good state, run this: - ./gl-dont-panic rewind + + $0 rewind + (this doesn't actually rewind; it creates a new commit that has the same state as the last good commit, which has the same effect) - - (FIX #2: PUSHING A NEW ADMIN KEY) if you lost your admin key, run this - with the new pubkey: - ./gl-dont-panic sitaram.pub + - (FIX #2: PUSHING A NEW ADMIN KEY) if you lost your admin key, or you + had used the wrong key initially, then you get yourself a new keypair + and run this with the new pubkey: + + $0 sitaram.pub # example using my name + + Please note that this simply *replaces* the key for user "sitaram". + It does NOT add a new admin called "sitaram". In fact it does not + touch the config file (access rules) at all. Step 3: completing the fix (on your workstation)