lerna: import failure: "git diff header lacks filename information when removing 1 leading pathname component"
I’m trying to init a new lerna instance, and import some (very large) old repo’s. And I am running into this error.
lerna import ../<some-large-repo>/
Lerna v2.0.0-beta.30
About to import 1947 commits into from ../<some-large-repo>/ into packages/<some-large-repo>
? Are you sure you want to import these commits onto the current branch? Yes
Errored while running ImportCommand.execute
Failed to apply commit a76cb3c23.
Error: Command failed: git am -3
error: git diff header lacks filename information when removing 1 leading pathname component (line 15046)
error: could not build fake ancestor
Rolling back to previous HEAD (commit 3ff03a0).
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 26 (14 by maintainers)
Commits related to this issue
- use urlEncode to handle spaces in file names, closes #432 — committed to ericwooley/lerna by deleted user 8 years ago
- use urlEncode to handle spaces in file names, closes #432 — committed to ericwooley/lerna by deleted user 8 years ago
- Use urlEncode to handle spaces in file names, closes #432 — committed to ericwooley/lerna by deleted user 8 years ago
I updated the PR to use a better show file command, that allowed me to get through a couple hundred more commits but ran into a new one. But I think this issue will be closed by https://github.com/lerna/lerna/pull/434.
I’ll see if I can figure out what is wrong with the next commits.
Patch parsing is aggravating.
I wish or I would have provided it. Unfortunately its work for a client 😦
I am trying to reproduce on something I can open source.
Yikes, that’s a new one. Thanks for reporting @ericwooley.
Is
<some-large-repo>
up on GitHub, by any chance? Looking for a way to repro this.