mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement
- Added Path::is_absolute, and corresponding unit tests. - Replaced expandPath and isAbsolutePath call in Config.cpp.
This commit is contained in:
parent
c02cfd594c
commit
e1f3f2355a
4 changed files with 20 additions and 3 deletions
|
@ -100,8 +100,8 @@ bool Config::load (const std::string& file, int nest /* = 1 */)
|
|||
std::string::size_type include = line.find ("include"); // no i18n.
|
||||
if (include != std::string::npos)
|
||||
{
|
||||
Path included (expandPath (trim (line.substr (include + 7), " \t")));
|
||||
if (isAbsolutePath (included.data))
|
||||
Path included (trim (line.substr (include + 7), " \t"));
|
||||
if (included.is_absolute ())
|
||||
{
|
||||
if (included.readable ())
|
||||
this->load (included.data, nest + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue