3 ms·
This is an awesome hack, thanks =) When I tried rebasing my Clojure fork against upstream I got Traceback (most recent call last): File "/Users/michael.blum
by MBlume 11y ago
This is an awesome hack, thanks =)
When I tried rebasing my Clojure fork against upstream I got
Traceback (most recent call last):
File "/Users/michael.blume/bin/git-rebaser", line 96, in <module>
write_todo(file, first, last, comments)
File "/Users/michael.blume/bin/git-rebaser", line 61, in write_todo
f = "[%s] %s" % (SYM[i], f)
KeyError: 62
Could not execute editor
I'm guessing this is a case of the commits touching too many files?
To reproduce, check out master at https://github.com/michaelblume/clojure https://github.com/michaelblume/clojure and rebase against b8607d5870
- junkblocker 11y agoSee my quick python2 edit at https://gist.github.com/junkblocker/c4b7f2417e62f0893021 https://gist.github.com/junkblocker/c4b7f2417e62f0893021 . It needed os.path.expanduser(...) since my editor was set to ~/bin/vim and ~ is only expanded by shell without that.
- wnoise 11y agoShouldn't it be expanded by the shell when it is first set? FOO=~/bin/vim export FOO env | grep FOO shows it as expanded.
- junkblocker 11y agoYou are running that in shell by hand. The python program running here is not shell. If you do a print(os.environ["GIT_EDITOR"]) in the python3 program you'll still see ~/bin/vim .
- koreno 11y agocouldn't find that specific commit for some reason... But I found the bug (indeed too many files, but I coped with it earlier...)