mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #732
- changed the parsing of ssh:// URIs, paths are now absolute by default
This commit is contained in:
parent
df8496edae
commit
398371d324
4 changed files with 24 additions and 11 deletions
|
@ -255,6 +255,12 @@ void Uri::parse ()
|
|||
throw std::string ("The uri '") + data + "' is not in the expected format.";
|
||||
}
|
||||
|
||||
// path is absolute for ssh:// syntax
|
||||
if ( (protocol == "ssh") && (pathDelimiter == "/") )
|
||||
{
|
||||
path = "/" + path;
|
||||
}
|
||||
|
||||
// port specified?
|
||||
// remark: this find() will never be != npos for scp-like syntax
|
||||
// because we found pathDelimiter, which is ":", before
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue