chiark
/
gitweb
/
~mdw
/
chopwood
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b53a8ab
)
chpwd: Put `user' into template arguments when run from command-line.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 16 Mar 2013 00:29:40 +0000
(
00:29
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 16 Mar 2013 00:29:40 +0000
(
00:29
+0000)
chpwd
patch
|
blob
|
blame
|
history
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)
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()
if ctx is None: ctx = 'userv'
else:
D.opendb()