{"comment":{"created_at":"2011-10-14T19:20:27Z","body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHmm.. I'm not sure if there's a way to disable colors from the git gem\ninterface, but the first thing that comes to mind for me is to just\ntry to strip out the special characters, there must be an easy to way\nto recognize an strip them.\n\nOn 11-10-14 7:55 AM, Sven Keidel wrote:\n> Ok, I could fix the second issue and some more by turning off the\n> git colors. i had a ```[color] ui = always``` in my gitconfig. If i\n> turn it of all specs pass. But there must be a way to use ticgit\n> with colors.\n> \n> I debugged some rspecs (with colors turned on) and inspected, that\n> the branchnames contains the shell color sequences:\n> ```\\e[32mmaster\\e[m```. If I turn the colors off, i get the plain\n> ```master``` branchlable.\n> \n> Is there a way to turn off the colors in the git gem interface when\n> fetching the informations?\n> \n> Greetings Sven\n> \n\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG/MacGPG2 v2.0.16 (Darwin)\nComment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/\n\niEYEARECAAYFAk6Yi2kACgkQoAi0Ar0kfbgVdgCgvoxBOzarxz0eGEGprayHti3R\nPxAAnjkVePJ5dhnfJ5Yhr7bh1sRBEAbL\n=0TuN\n-----END PGP SIGNATURE-----","updated_at":"2011-10-14T19:20:27Z","url":"https://api.github.com/repos/schacon/ticgit/issues/comments/2410377","id":2410377,"user":{"avatar_url":"https://secure.gravatar.com/avatar/96be9ea59dea46616afed434fd07dcf5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"96be9ea59dea46616afed434fd07dcf5","url":"https://api.github.com/users/jeffWelling","id":105077,"login":"jeffWelling"}},"action":"created","issue":{"number":14,"created_at":"2011-10-13T12:32:13Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I had a few issues, using ticgit on arch:\r\n\r\nI installed it via gem. \r\nHere are some of my system informations which could be relevant:\r\n\r\n```\r\n$ ruby --version \r\n1.9.2p290 (2011-07-09 revision 32553) [i686-linux]\r\n```\r\n\r\n```\r\n$ gem --version\r\n1.8.11\r\n```\r\n\r\n```\r\n$ git --version\r\n1.7.7\r\n```\r\n\r\n```\r\n$ gem list\r\n...\r\ngit (1.2.5)\r\nhaml (3.1.3)\r\nrubygems-update (1.8.11)\r\nsass (3.1.10)\r\nsinatra (1.3.1)\r\nTicGit-ng (1.0.2.9)\r\n...\r\n```\r\n\r\n=========\r\nIf I run ```ti``` in a non-git folder, I get the following error:\r\n\r\n```\r\n/home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:235:in `puts': private method `puts' called for nil:NilClass (NoMethodError)\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:30:in `rescue in initialize'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:23:in `initialize'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:14:in `new'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:14:in `parse'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:9:in `execute'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/bin/ti:13:in `<top (required)>'\r\n\tfrom /home/sven/.gem/bin/ti:19:in `load'\r\n\tfrom /home/sven/.gem/bin/ti:19:in `<main>'\r\n```\r\n\r\n\r\nIf I setup a new git repos and run the ```ti``` command inside:\r\n\r\n```text\r\n/home/sven/.gem/gems/git-1.2.5/lib/git/lib.rb:153:in `block in process_commit_data': undefined method `[]=' for nil:NilClass (NoMethodError)\r\n\tfrom /home/sven/.gem/gems/git-1.2.5/lib/git/lib.rb:135:in `each'\r\n\tfrom /home/sven/.gem/gems/git-1.2.5/lib/git/lib.rb:135:in `process_commit_data'\r\n\tfrom /home/sven/.gem/gems/git-1.2.5/lib/git/lib.rb:93:in `full_log_commits'\r\n\tfrom /home/sven/.gem/gems/git-1.2.5/lib/git/log.rb:108:in `run_log'\r\n\tfrom /home/sven/.gem/gems/git-1.2.5/lib/git/log.rb:101:in `check_log'\r\n\tfrom /home/sven/.gem/gems/git-1.2.5/lib/git/log.rb:84:in `each'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/base.rb:25:in `map'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/base.rb:25:in `initialize'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng.rb:46:in `new'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng.rb:46:in `open'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:24:in `initialize'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:14:in `new'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:14:in `parse'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/lib/ticgit-ng/cli.rb:9:in `execute'\r\n\tfrom /home/sven/.gem/gems/TicGit-ng-1.0.2.9/bin/ti:13:in `<top (required)>'\r\n\tfrom /home/sven/.gem/bin/ti:19:in `load'\r\n\tfrom /home/sven/.gem/bin/ti:19:in `<main>'\r\n```\r\n\r\nIf this isn't a general problem, I could fix some of these problems.\r\n\r\nGreetings Sven","comments":3,"title":"ticgit on archlinux","updated_at":"2011-10-14T19:20:27Z","url":"https://api.github.com/repos/schacon/ticgit/issues/14","id":1899705,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/547a30598cc159f6dbad7ac0c3f5d940?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"547a30598cc159f6dbad7ac0c3f5d940","url":"https://api.github.com/users/jungerkrieger89","id":266500,"login":"jungerkrieger89"},"html_url":"https://github.com/schacon/ticgit/issues/14","labels":[],"state":"open"},"legacy":{"issue_id":1899705,"comment_id":2410377}}