mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Sync
- Managed to cut/paste a superfluous semicolon. Oops.
This commit is contained in:
parent
74dcdd897a
commit
42521fea8b
4 changed files with 8 additions and 8 deletions
|
@ -50,7 +50,7 @@ void TransportCurl::send(const std::string& source)
|
||||||
throw std::string ("When using the 'curl' protocol, wildcards are not supported.");
|
throw std::string ("When using the 'curl' protocol, wildcards are not supported.");
|
||||||
|
|
||||||
if (!uri.is_directory())
|
if (!uri.is_directory())
|
||||||
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
|
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
|
||||||
|
|
||||||
std::string toSplit;
|
std::string toSplit;
|
||||||
std::string suffix;
|
std::string suffix;
|
||||||
|
@ -105,7 +105,7 @@ void TransportCurl::recv(std::string target)
|
||||||
throw std::string ("When using the 'curl' protocol, wildcards are not supported.");
|
throw std::string ("When using the 'curl' protocol, wildcards are not supported.");
|
||||||
|
|
||||||
if (!is_directory(target))
|
if (!is_directory(target))
|
||||||
throw std::string ("The uri '"); + target + "' does not appear to be a directory.";
|
throw std::string ("The uri '") + target + "' does not appear to be a directory.";
|
||||||
|
|
||||||
std::string toSplit;
|
std::string toSplit;
|
||||||
std::string suffix;
|
std::string suffix;
|
||||||
|
|
|
@ -42,7 +42,7 @@ void TransportRSYNC::send(const std::string& source)
|
||||||
// Is there more than one file to transfer?
|
// Is there more than one file to transfer?
|
||||||
// Then path has to end with a '/'
|
// Then path has to end with a '/'
|
||||||
if (is_filelist(source) && !uri.is_directory())
|
if (is_filelist(source) && !uri.is_directory())
|
||||||
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
|
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
|
||||||
|
|
||||||
// cmd line is: rsync [--port=PORT] source [user@]host::path
|
// cmd line is: rsync [--port=PORT] source [user@]host::path
|
||||||
if (uri.port != "")
|
if (uri.port != "")
|
||||||
|
@ -74,7 +74,7 @@ void TransportRSYNC::recv(std::string target)
|
||||||
// Is there more than one file to transfer?
|
// Is there more than one file to transfer?
|
||||||
// Then target has to end with a '/'
|
// Then target has to end with a '/'
|
||||||
if (is_filelist(uri.path) && !is_directory(target))
|
if (is_filelist(uri.path) && !is_directory(target))
|
||||||
throw std::string ("The uri '"); + target + "' does not appear to be a directory.";
|
throw std::string ("The uri '") + target + "' does not appear to be a directory.";
|
||||||
|
|
||||||
// cmd line is: rsync [--port=PORT] [user@]host::path target
|
// cmd line is: rsync [--port=PORT] [user@]host::path target
|
||||||
if (uri.port != "")
|
if (uri.port != "")
|
||||||
|
|
|
@ -42,7 +42,7 @@ void TransportSSH::send(const std::string& source)
|
||||||
// Is there more than one file to transfer?
|
// Is there more than one file to transfer?
|
||||||
// Then path has to end with a '/'
|
// Then path has to end with a '/'
|
||||||
if (is_filelist(source) && !uri.is_directory())
|
if (is_filelist(source) && !uri.is_directory())
|
||||||
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
|
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
|
||||||
|
|
||||||
// cmd line is: scp [-p port] [user@]host:path
|
// cmd line is: scp [-p port] [user@]host:path
|
||||||
if (uri.port != "")
|
if (uri.port != "")
|
||||||
|
@ -75,7 +75,7 @@ void TransportSSH::recv(std::string target)
|
||||||
// Is there more than one file to transfer?
|
// Is there more than one file to transfer?
|
||||||
// Then target has to end with a '/'
|
// Then target has to end with a '/'
|
||||||
if (is_filelist(uri.path) && !is_directory(target))
|
if (is_filelist(uri.path) && !is_directory(target))
|
||||||
throw std::string ("The uri '"); + target + "' does not appear to be a directory.";
|
throw std::string ("The uri '") + target + "' does not appear to be a directory.";
|
||||||
|
|
||||||
// cmd line is: scp [-p port] [user@]host:path
|
// cmd line is: scp [-p port] [user@]host:path
|
||||||
if (uri.port != "")
|
if (uri.port != "")
|
||||||
|
|
|
@ -665,7 +665,7 @@ void handlePush (std::string& outs)
|
||||||
{
|
{
|
||||||
// copy files locally
|
// copy files locally
|
||||||
if (!uri.is_directory())
|
if (!uri.is_directory())
|
||||||
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
|
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
|
||||||
|
|
||||||
std::ifstream ifile1 ((location.data + "/undo.data").c_str(), std::ios_base::binary);
|
std::ifstream ifile1 ((location.data + "/undo.data").c_str(), std::ios_base::binary);
|
||||||
std::ofstream ofile1 ((uri.path + "undo.data").c_str(), std::ios_base::binary);
|
std::ofstream ofile1 ((uri.path + "undo.data").c_str(), std::ios_base::binary);
|
||||||
|
@ -704,7 +704,7 @@ void handlePull (std::string& outs)
|
||||||
Directory location (context.config.get ("data.location"));
|
Directory location (context.config.get ("data.location"));
|
||||||
|
|
||||||
if (!uri.append ("{pending,undo,completed}.data"))
|
if (!uri.append ("{pending,undo,completed}.data"))
|
||||||
throw std::string ("The uri '"); + uri.path + "' does not appear to be a directory.";
|
throw std::string ("The uri '") + uri.path + "' does not appear to be a directory.";
|
||||||
|
|
||||||
Transport* transport;
|
Transport* transport;
|
||||||
if ((transport = Transport::getTransport (uri)) != NULL)
|
if ((transport = Transport::getTransport (uri)) != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue