Skip to content

{git} Two branches named "EXT_packing" with different case - git fetch fails on lock file #1395

@asmaloney

Description

@asmaloney

If I try to git fetch, it fails because of the EXT_packing and ext_packing branches.

It's probably because the case-insensitive file system can't create the second lock file…

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch --prune origin 
From https://github.com/g-truc/glm
 * [new branch]        0.8.4                  -> origin/0.8.4
 * [new branch]        0.9.0                  -> origin/0.9.0
[snip]
 * [new branch]        EXT_packing           -> origin/EXT_packing
[snip]
 * [new branch]        ext_packing            -> origin/ext_packing
 [snip]
 * [new branch]        unrestricted_scalar    -> origin/unrestricted_scalar
 * [new branch]        vectorize              -> origin/vectorize
 * [new branch]        version                -> origin/version
error: cannot lock ref 'refs/remotes/origin/ext_packing': Unable to create '<path>/glm/.git/refs/remotes/origin/ext_packing.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
Completed with errors, see above

Solution: Rename or remove one of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions