Skip to content

Import doesn't work if repo being imported contains commits which renamed files #345

Closed

Description

@ryb73

Repo setup:

mkdir repo && cd repo
git init
touch test1
git add -A
git commit -m "Initial commit"
git mv test1 test2
git commit -m "Move test file"

lerna output:

$ lerna import repo
Lerna v2.0.0-beta.28
About to import 3 commits into from repo into packages/repo
? Are you sure you want to import these commits onto the current branch? Yes
Errored while running ImportCommand.execute
Failed to apply commit f9b4e3f.
Error: Command failed: git am -3
fatal: mode change for test1, which is not in current HEAD
error: could not build fake ancestor

Rolling back to previous HEAD (commit c947f8c).

Activity

  1. added a commit that references this issue on Sep 26, 2016
    28f04cc
  2. justinr1234 commented on Aug 13, 2017

    @justinr1234

    I'm still having this exact issue: fatal: mode change for packages/ironworks/src/server/api/schema.js, which is not in current HEAD

  3. lock commented on Dec 28, 2018

    @lock

    This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked as resolved and limited conversation to collaborators on Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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