This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to tag v1.0.0
in repository osmium-tool.

commit 86efe928764894cf82dc3a56cdbe75c9fd50bc55
Author: Jochen Topf <joc...@topf.org>
Date:   Thu Jun 19 14:57:00 2014 +0200

    Fix osmium-subcommand command names.
---
 src/main.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index b50534b..11e1efa 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -43,6 +43,8 @@ enum return_code : int {
 
 int main(int argc, char *argv[]) {
     std::string command = argv[0];
+
+    // remove path from command
     if (command.find_last_of("/") != std::string::npos) {
         command = command.substr(command.find_last_of("/") + 1);
     }
@@ -67,8 +69,8 @@ int main(int argc, char *argv[]) {
             arguments.erase(arguments.begin());
         }
     } else {
-        if (command.substr(0, 5) == "osmium-") {
-            command = command.substr(5);
+        if (command.substr(0, 7) == "osmium-") {
+            command = command.substr(7);
         }
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/osmium-tool.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to