Comments (3)
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.
from ticgit.
I am using now Debian and some errors, not sure whether I am running the newest ticgit.
$ cat /proc/version
Linux version 3.2.0-0.bpo.2-686-pae (Debian 3.2.20-1~bpo60+1) ([email protected]) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Sat Jun 30 08:29:17 UTC 2012
$ git init
$ ti init
/usr/lib/ruby/1.8/git/lib.rb:643:in command': git branch -a 2>&1:fatal: Failed to resolve HEAD as a valid ref. (Git::GitExecuteError) from /usr/lib/ruby/1.8/git/lib.rb:615:in
command_lines'
from /usr/lib/ruby/1.8/git/lib.rb:209:in branches_all' from /usr/lib/ruby/1.8/ticgit/base.rb:241:in
load_tickets'
from /usr/lib/ruby/1.8/ticgit/base.rb:72:in reset_ticgit' from /usr/lib/ruby/1.8/ticgit/base.rb:38:in
initialize'
from /usr/lib/ruby/1.8/ticgit.rb:25:in new' from /usr/lib/ruby/1.8/ticgit.rb:25:in
open'
from /usr/lib/ruby/1.8/ticgit/cli.rb:23:in initialize' from /usr/lib/ruby/1.8/ticgit/cli.rb:16:in
new'
from /usr/lib/ruby/1.8/ticgit/cli.rb:16:in parse' from /usr/lib/ruby/1.8/ticgit/cli.rb:12:in
execute'
from /usr/bin/ti:10
$ ti
/usr/lib/ruby/1.8/git/lib.rb:643:in command': git branch -a 2>&1:fatal: Failed to resolve HEAD as a valid ref. (Git::GitExecuteError) from /usr/lib/ruby/1.8/git/lib.rb:615:in
command_lines'
from /usr/lib/ruby/1.8/git/lib.rb:209:in branches_all' from /usr/lib/ruby/1.8/ticgit/base.rb:241:in
load_tickets'
from /usr/lib/ruby/1.8/ticgit/base.rb:72:in reset_ticgit' from /usr/lib/ruby/1.8/ticgit/base.rb:38:in
initialize'
from /usr/lib/ruby/1.8/ticgit.rb:25:in new' from /usr/lib/ruby/1.8/ticgit.rb:25:in
open'
from /usr/lib/ruby/1.8/ticgit/cli.rb:23:in initialize' from /usr/lib/ruby/1.8/ticgit/cli.rb:16:in
new'
from /usr/lib/ruby/1.8/ticgit/cli.rb:16:in parse' from /usr/lib/ruby/1.8/ticgit/cli.rb:12:in
execute'
from /usr/bin/ti:10
$ dpkg -l ticgit
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==========================-==========================-====================================================================
ii ticgit 0.3.3-2 ticketing system built on Git
from ticgit.
-
That's improper usage for TicGit-ng. The appropriate usage is to first add at least one commit to git, and in the latest version of TicGit-ng there has been code added to make sure that when you try to use TicGit-ng without adding commits to git first that TicGit-ng fails gracefully and explains why it has failed.
-
It appears you are using TicGit, not TicGit-ng, and should be filing these issues on the TicGit page instead of the TicGit-ng Issues page.
from ticgit.
Related Issues (20)
- Rollback to Ticgit 2008/2009 -version? HOT 2
- Version -number command? HOT 3
- Creating a ticket with comments and tags HOT 4
- Docs: Does ticgit-ng have a ticgit-ng branch? HOT 3
- tagging only works on checked out issue HOT 2
- ticgit is not path independent HOT 3
- Configurable storage backend HOT 1
- ticgit ubuntu 12.04 package broken!? HOT 3
- Bug interchange format?
- checkout of bad ticket id checks out wrong ticket
- Can't list bugs in project HOT 10
- documentation ti new with -t argument HOT 1
- add priority to tickets
- actual gem broken (gentoo and sabayon) HOT 1
- ti Inappropriate ioctl for device STDOUT HOT 4
- Tickets have 'tasks'
- Deleting tags
- ti list -t yields TicGit-ng-1.0.2.18/lib/ticgit-ng/cli.rb:54:in `execute!': missing argument: -t (OptionParser::MissingArgument)
- tags not case sensitive
- Problem getting this program to run after installing on Kali Linux.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ticgit.