Hi again, Michael: Yes, I have both properties set to 'always'. With 'auto' ticgit works fine, as expected. The bug should be reassigned to libgit-ruby.
Thank you very much. Best regards, Daniel. On Thu, Aug 12, 2010 at 9:54 AM, Michael Schutte <[email protected]> wrote: > Hi again! > > On Thu, Aug 12, 2010 at 09:20:22AM +0200, Daniel Fanjul wrote: > > No, it is not an empty repository. I already have commits and other > > branches. > > > > For example: > > *...@rayado:~/tmp[master]$* mkdir ticgittesting > > *...@rayado:~/tmp[master]$* cd ticgittesting > > *...@rayado:~/tmp/ticgittesting[master]$ *git init > > Initialized empty Git repository in /home/dfanjul/tmp/ticgittesting/.git/ > > *...@rayado:~/tmp/ticgittesting$* for i in `seq 5`; do touch $i; git add > "$i"; > > git ci -m "$i" "$i"; done > > [master (root-commit) 4403532] 1 > > ... > > *...@rayado:~/tmp/ticgittesting[master]$* git br > > * master > > *...@rayado:~/tmp/ticgittesting$** cat .git/HEAD > > ref: refs/heads/master* > > *...@rayado:~/tmp/ticgittesting[master]$* ti new > > I, [2010-08-12T08:56:44.996317 #4133] INFO -- : creating ticgit repo > branch > > I, [2010-08-12T08:56:50.058287 #4133] INFO -- : saving 1281596210_foo_15 > > /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:67:in `ticket_new' > > from /usr/lib/ruby/1.8/ticgit/cli.rb:348:in `handle_ticket_new' > > from /usr/lib/ruby/1.8/ticgit/cli.rb:41:in `execute!' > > from /usr/lib/ruby/1.8/ticgit/cli.rb:12:in `execute' > > from /usr/bin/ti:10 > > Alright, I just had an idea … Is there any chance you have set color.ui > or color.branch to always in your Git configuration? This seems to > upset libgit-ruby’s handling of branches in the way you are describing. > If so, try setting it to auto as a workaround (this still enables colour > on the console, but disables it on pipes), and I’ll reassign to > libgit-ruby. > > Cheers, > -- > Michael Schutte <[email protected]> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEcBAEBCAAGBQJMY6ixAAoJEPPkEi8djCYaSUQH/0A56JydUfm1BD8bSOBltp+C > 5nErAtZ9P6Y9Aib5UA47hKoXIze8Rg58T/ItUbKpVjPlXiLZ4tA7jXHvrQ54H62T > 6EsMENTWl9XCiqz8X9RI0PS+s4Y/4fp41yP7WyN7YAWw263r/ogp1UgGy0JrYLcx > dhyI87P3cXLJi2lb4P6jazqxkX4aVnTmfmK4hFuANRbwp8KJ0fgHYaeTf6L+HIsr > YwcCRoDDepAMg1RFjEj0pQwck1Z+XPA/GWrqjR6mo09XfD4+JTyIzhczt15syQf2 > y6QqRENpWzPB0Qamlx/dnea9Kc7JiCZmSbOqQ+V0XEjd8hrWJC9sHuu8r+HPVUQ= > =vbTC > -----END PGP SIGNATURE----- > >

