File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 144
144
# a list of public SCM service (github/butbucket) which support http, https and ssh schemas
145
145
public_scm_services = ['bitbucket.org' , 'github.com' , 'gitlab.com' ]
146
146
147
+ # commands that don't get the current work path shown
148
+ skip_workpath_commands = ["config" , "cfg" , "conf" ]
147
149
148
150
# verbose logging
149
151
verbose = False
@@ -3375,9 +3377,10 @@ def main():
3375
3377
very_verbose = pargs .very_verbose
3376
3378
verbose = very_verbose or pargs .verbose
3377
3379
pathtype = Repo .pathtype (cwd_root )
3378
- action ('Working path \" %s\" (%s)' % (cwd_root , pathtype ))
3379
- if pathtype != "program" :
3380
- action ('Program path \" %s\" ' % Program (cwd_root ).path )
3380
+ if not sys .argv [1 ].lower () in skip_workpath_commands :
3381
+ action ('Working path \" %s\" (%s)' % (cwd_root , pathtype ))
3382
+ if pathtype == "library" :
3383
+ action ('Program path \" %s\" ' % Program (cwd_root ).path )
3381
3384
status = pargs .command (pargs )
3382
3385
except ProcessException as e :
3383
3386
error (
You can’t perform that action at this time.
0 commit comments