On Mon, Apr 29, 2019 at 2:35 PM Duy Nguyen <pclouds@xxxxxxxxx> wrote: > > On Mon, Apr 29, 2019 at 6:03 PM Aleksey Midenkov <midenok@xxxxxxxxx> wrote: > > > > Reproduce: > > ``` > > cat << EOF >> /tmp/check.sh > > #!/bin/sh > > git log HEAD~..HEAD | cat > > # sleep 1 > > EOF > > chmod +x /tmp/check.sh > > git rebase -p -x /tmp/check.sh base > > ``` > > If the `base` is far away enough it fails with "fatal: Unable to > > create '.../.git/index.lock': File exists." at an arbitrary commit. > > I gave it about 2000 commits (from v2.20.1 to master on git.git) to > rebase. No luck. Please, try on this repo: git@xxxxxxxxxx:tempesta-tech/mariadb ``` git checkout 62a082f573 git rebase -p -x /tmp/check.sh ca7fbcea6c4 ``` On Tue, Apr 30, 2019 at 12:10 AM Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote: ... > > Does it work if you pass `-r` instead of `-p`? The latter will be > deprecated in favor of the former in the upcoming Git v2.22. It also fails with `-r` but less frequently. -- All the best, Aleksey Midenkov @midenok