On za, 2013-03-09 at 21:16 +0100, Strasser Pablo wrote: > Hello, > > I segfault with the following command: > > git checkout HEAD~1 > git branch -u origin/master > > I think it's because i'm in detached head. > A error message like cannot use this command in would be a better responce > than a segfault. Confirmed. dennis@lightning:/tmp/hacks$ gdb --args ~/code/git/git branch -u origin/master (gdb) run Starting program: /home/dennis/code/git/git branch -u origin/master [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. cmd_branch (argc=0, argv=0xbfffec08, prefix=0x0) at builtin/branch.c:886 886 if (!ref_exists(branch->refname)) (gdb) bt #0 cmd_branch (argc=0, argv=0xbfffec08, prefix=0x0) at builtin/branch.c:886 #1 0x0804c26c in run_builtin (argv=0xbfffec08, argc=3, p=0x819f3f4 <commands.21695+84>) at git.c:273 #2 handle_internal_command (argc=3, argv=0xbfffec08) at git.c:435 #3 0x0804b656 in run_argv (argv=0xbfffeb74, argcp=0xbfffeb70) at git.c:481 #4 main (argc=3, argv=0xbfffec08) at git.c:556 But it's already been fixed by 8efb889: branch: segfault fixes and validation. -- Dennis Kaarsemaker www.kaarsemaker.net -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html