chiark / gitweb /
chpwd: Put `user' into template arguments when run from command-line.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 16 Mar 2013 00:29:40 +0000 (00:29 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 16 Mar 2013 00:29:40 +0000 (00:29 +0000)
chpwd

diff --git a/chpwd b/chpwd
index 38727152669596a67963e0d24f473a9177cff286..65ae8739ea2ac86fb4635658e68c75602191c6d4 100755 (executable)
--- a/chpwd
+++ b/chpwd
@@ -279,6 +279,7 @@ if __name__ == '__main__':
       ctx = OPTS.context
       if OPTS.user:
         CU.set_user(OPTS.user)
+        CGI.STATE.kw['user'] = OPTS.user
         if ctx is None: ctx = 'userv'
       else:
         D.opendb()