git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Aleksey Midenkov <midenok@gmail.com>
To: git@vger.kernel.org
Subject: Bug: fatal: Unable to create '.../.git/index.lock': File exists.
Date: Mon, 29 Apr 2019 14:02:39 +0300	[thread overview]
Message-ID: <CAF8BazA-VYFns7o9F7gXfFZCspbM0yQKi+LQ+BnkpGH+EjPC9A@mail.gmail.com> (raw)
In-Reply-To: <CAF8BazDu_GqoCPBQ-gEJ+q8n1aWSjf_TOV7bDE5VCQkDgBjyfQ@mail.gmail.com>

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.

Abort current rebase, uncomment 'sleep 1' and repeat rebase. Now it
doesn't fail.

Version:
git version 2.20.1

uname --all
Linux lian 4.18.0-15-generic #16-Ubuntu SMP Thu Feb 7 10:56:39 UTC
2019 x86_64 x86_64 x86_64 GNU/Linux


-- 
All the best,

Aleksey Midenkov
@midenok

       reply	other threads:[~2019-04-29 11:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAF8BazDu_GqoCPBQ-gEJ+q8n1aWSjf_TOV7bDE5VCQkDgBjyfQ@mail.gmail.com>
2019-04-29 11:02 ` Aleksey Midenkov [this message]
2019-04-29 11:34   ` Bug: fatal: Unable to create '.../.git/index.lock': File exists Duy Nguyen
2019-04-30 11:19     ` Aleksey Midenkov
2019-04-30 17:41       ` Jeff King
2019-05-01  7:15         ` Aleksey Midenkov
2019-05-01 18:36           ` Jeff King
2019-05-02 13:45             ` Aleksey Midenkov
2019-05-02 15:07               ` Jeff King
2019-05-02 16:38                 ` Duy Nguyen
2019-05-02 16:58                   ` Jeff King
2019-05-02 17:24                     ` Duy Nguyen
2019-05-03  9:47                       ` Johannes Schindelin
2019-05-03 10:22                         ` Duy Nguyen
2019-05-03  5:42                     ` Duy Nguyen
2019-04-29 21:10   ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF8BazA-VYFns7o9F7gXfFZCspbM0yQKi+LQ+BnkpGH+EjPC9A@mail.gmail.com \
    --to=midenok@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).