Zombo
Zombo

Reputation: 1

Cygwin git rebase fail?

If I run

git rebase -i HEAD~10

The editor comes up with just

git://github.com/jquery/jquery.git

Instead of the commits. What am I doing wrong here?

Upvotes: 1

Views: 735

Answers (1)

Zombo
Zombo

Reputation: 1

#!/bin/dash -e
if [ "$1" ]
then k=$(cygpath -w "$1")
elif [ "$#" != 0 ]
then k=
fi
Notepad2 ${k+"$k"}
  1. If no path, pass no path

  2. If path is empty, pass empty path

  3. If path is not empty, convert to Windows format.

Then I set these variables:

export EDITOR=notepad2.sh
export GIT_EDITOR='dash /usr/local/bin/notepad2.sh'
  1. EDITOR allows script to work with Git

  2. GIT_EDITOR allows script to work with Hub commands

Source

Upvotes: 1

Related Questions