git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git rebase --interactive problems
@ 2009-09-07 12:31 Dave Rodgman
  2009-09-07 13:03 ` Jeff Epler
  2009-09-07 13:04 ` Carlo Marcelo Arenas Belon
  0 siblings, 2 replies; 3+ messages in thread
From: Dave Rodgman @ 2009-09-07 12:31 UTC (permalink / raw)
  To: git

When I try to do even the simplest rebase --interactive, I get a cryptic
error message:

$ git rebase -i HEAD~2
<do nothing in the editor that appears, just save>

I then get:

/usr/lib/git-core/git-rebase--interactive: 1: arithmetic expression:
expecting primary: "-c ^[^#]
2+-c ^[^#]
0"

and all I can do is git rebase --abort

Am I doing something wrong, or is this a bug? I am using git 1.6.4.2

thanks

Dave

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git rebase --interactive problems
  2009-09-07 12:31 git rebase --interactive problems Dave Rodgman
@ 2009-09-07 13:03 ` Jeff Epler
  2009-09-07 13:04 ` Carlo Marcelo Arenas Belon
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Epler @ 2009-09-07 13:03 UTC (permalink / raw)
  To: Dave Rodgman; +Cc: git

It looks like something is going wrong with the 'grep -c' in
    mark_action_done () {
            sed -e 1q < "$TODO" >> "$DONE"
            sed -e 1d < "$TODO" >> "$TODO".new
            mv -f "$TODO".new "$TODO"
            count=$(grep -c '^[^#]' < "$DONE")
            total=$(($count+$(grep -c '^[^#]' < "$TODO")))
            if test "$last_count" != "$count"
            then
                    last_count=$count
                    printf "Rebasing (%d/%d)\r" $count $total
                    test -z "$VERBOSE" || echo
            fi
    }
are you using an unusual platform or have an unusual /bin/grep or
/bin/sh?

Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git rebase --interactive problems
  2009-09-07 12:31 git rebase --interactive problems Dave Rodgman
  2009-09-07 13:03 ` Jeff Epler
@ 2009-09-07 13:04 ` Carlo Marcelo Arenas Belon
  1 sibling, 0 replies; 3+ messages in thread
From: Carlo Marcelo Arenas Belon @ 2009-09-07 13:04 UTC (permalink / raw)
  To: Dave Rodgman; +Cc: git

On Mon, Sep 07, 2009 at 01:31:56PM +0100, Dave Rodgman wrote:
> 
> Am I doing something wrong, or is this a bug? I am using git 1.6.4.2

can you do before running the rebase (assuming a bourne shell) :

  unset GREP_OPTIONS

this looks like the bug I just send a patch to the list to fix and
which seems to be also reported in Ubuntu as :

  https://bugs.launchpad.net/ubuntu/+source/git-core/+bug/398393

Carlo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-07 13:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-07 12:31 git rebase --interactive problems Dave Rodgman
2009-09-07 13:03 ` Jeff Epler
2009-09-07 13:04 ` Carlo Marcelo Arenas Belon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).