git rebase-update fails often with "Unable to create '<path_to_repo>/.git/index.lock': File exists |
|
Issue description
While running git rebase-update, a lot of the time it will fail with the error "Unable to create '<path_to_repo>/.git/index.lock': File exists".
When looking for it manually, the file is not there.
What steps will reproduce the problem?
(1)Run "git rebase-update"
(2)Be lucky/unlucky
(3)See error
Please use labels and text to provide additional information.
Attached screenshot of it happening
Stack trace:
Failed! Attempting to squash skip-csp ...
Traceback (most recent call last):
File "<home_dir>/work/depot_tools/git_rebase_update.py", line 332, in <module>
sys.exit(main())
File "<home_dir>/work/depot_tools/git_rebase_update.py", line 278, in main
ret = rebase_branch(branch, parent, merge_base[branch])
File "<home_dir>/work/depot_tools/git_rebase_update.py", line 165, in rebase_branch
git.run('checkout', '-b', squash_branch)
File "<home_dir>/work/depot_tools/git_common.py", line 676, in run
return run_with_stderr(*cmd, **kwargs)[0]
File "<home_dir>/work/depot_tools/git_common.py", line 745, in run_with_stderr
raise subprocess2.CalledProcessError(retcode, cmd, os.getcwd(), ret, err)
subprocess2.CalledProcessError: Command 'git -c color.ui=never checkout -b skip-csp_squash_attempt' returned non-zero exit status 128 in <home_dir>/work/chromium/src
fatal: Unable to create '<home_dir>/work/chromium/src/.git/index.lock': File exists.
,
Sep 20 2017
dgn@ I have grown to suspect that emacs might actually be the cause. Are you by any chance using emacs with auto-revert-move enabled? |
|
►
Sign in to add a comment |
|
Comment 1 by dgn@chromium.org
, Sep 20 2017