TW-1658: rc override to non-existent alternate rc quietly uses default
- Thanks to David Patrick. - The 'rc:' argument now means 'use all defaults', which assumes 'data.location=~/.task', so this will not work for anyone using a different location.
This commit is contained in:
@@ -683,7 +683,7 @@ void Context::staticInitialization ()
|
||||
void Context::createDefaultConfig ()
|
||||
{
|
||||
// Do we need to create a default rc?
|
||||
if (! rc_file.exists ())
|
||||
if (rc_file._data != "" && ! rc_file.exists ())
|
||||
{
|
||||
if (config.getBoolean ("confirmation") &&
|
||||
!confirm (format (STRING_CONTEXT_CREATE_RC, home_dir, rc_file._data)))
|
||||
|
||||
Reference in New Issue
Block a user