import failure: "git diff header lacks filename information when removing 1 leading pathname component"
See original GitHub issueI’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).
Issue Analytics
- State:
- Created 7 years ago
- Comments:26 (14 by maintainers)
Top Results From Across the Web
Error "git diff header lacks filename information when ...
I got error: git diff header lacks filename information when removing 1 leading pathname component (line 5).
Read more >340167 - git cl patch fails: git diff header lacks filename ...
Issue 340167: git cl patch fails: git diff header lacks filename information when removing 0 leading pathname components. Reported by schedule falken@chromium.
Read more >import failure: "git diff header lacks filename information when ...
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...
Read more >Git - git-diff Documentation
git -diff - Show changes between commits, commit and working tree, etc ... The information is put between the filename part and the...
Read more >'Re: git apply: git diff header lacks filename information for git ...
List: git Subject: Re: git apply: git diff header lacks filename information for git diff --no-index patch From: Jakub Narebski <jnareb () gmail...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.