-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"$ git init; ti init; ti" firing bugs with any command, no error-handling with null -repo #62
Comments
This has been dealt with in the latest version, though it does seem like an edge case. Please update your gem and check that this issue is resolved for you. The issue that I fixed for this (it wasn't 100% clear to me what your problem was) was that TicGit-ng didn't check for and gracefully fail when someone tried to use TicGit-ng with a repository that did not have any commits in it yet. To resolve this, I added error checking for this condition and an rspec spec to prevent regression, so if I understood your problem correctly then hopefully this is resolved. Let me know, in the meantime I will mark this issue as closed. |
I am using now Debian and some errors, not sure whether I am running the newest ticgit. $ cat /proc/version |
|
Tested on 12.04 Ubuntu. It seems to lack error handling with Null -repo.
$ cat /proc/version
Linux version 3.2.0-26-generic (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012
$ ti new -t 'testing1'
/var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:700:in
command': git branch "-a" 2>&1:fatal: Failed to resolve HEAD as a valid ref. (Git::GitExecuteError) from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:672:in
command_lines'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:200:in
branches_all' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/branches.rb:12:in
initialize'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
new' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
branches'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:414:in
which_branch?' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:32:in
initialize'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
new' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
open'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:34:in
initialize' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
new'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
parse' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:9:in
execute'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/bin/ti:13
from /usr/local/bin/ti:19:in
load' from /usr/local/bin/ti:19 xyz@xyz:~/T$ ti new --help /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:700:in
command': git branch "-a" 2>&1:fatal: Failed to resolve HEAD as a valid ref. (Git::GitExecuteError)from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:672:in
command_lines' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:200:in
branches_all'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/branches.rb:12:in
initialize' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
new'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
branches' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:414:in
which_branch?'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:32:in
initialize' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
new'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
open' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:34:in
initialize'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
new' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
parse'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:9:in
execute' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/bin/ti:13 from /usr/local/bin/ti:19:in
load'from /usr/local/bin/ti:19
xyz@xyz:
/T$ ti --help/T$ ti/var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:700:in
command': git branch "-a" 2>&1:fatal: Failed to resolve HEAD as a valid ref. (Git::GitExecuteError) from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:672:in
command_lines'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:200:in
branches_all' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/branches.rb:12:in
initialize'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
new' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
branches'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:414:in
which_branch?' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:32:in
initialize'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
new' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
open'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:34:in
initialize' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
new'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
parse' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:9:in
execute'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/bin/ti:13
from /usr/local/bin/ti:19:in
load' from /usr/local/bin/ti:19 xyz@xyz:~/T$ ti --help /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:700:in
command': git branch "-a" 2>&1:fatal: Failed to resolve HEAD as a valid ref. (Git::GitExecuteError)from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:672:in
command_lines' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:200:in
branches_all'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/branches.rb:12:in
initialize' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
new'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
branches' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:414:in
which_branch?'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:32:in
initialize' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
new'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
open' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:34:in
initialize'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
new' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
parse'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:9:in
execute' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/bin/ti:13 from /usr/local/bin/ti:19:in
load'from /usr/local/bin/ti:19
xyz@xyz:
/var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:700:in
command': git branch "-a" 2>&1:fatal: Failed to resolve HEAD as a valid ref. (Git::GitExecuteError) from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:672:in
command_lines'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:200:in
branches_all' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/branches.rb:12:in
initialize'from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
new' from /var/lib/gems/1.8/gems/git-1.2.5/lib/git/base.rb:180:in
branches'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:414:in
which_branch?' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/base.rb:32:in
initialize'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
new' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng.rb:50:in
open'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:34:in
initialize' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
new'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:14:in
parse' from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/lib/ticgit-ng/cli.rb:9:in
execute'from /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.14/bin/ti:13
from /usr/local/bin/ti:19:in `load'
from /usr/local/bin/ti:19
The text was updated successfully, but these errors were encountered: