import failure: "git diff header lacks filename information when removing 1 leading pathname component"

See original GitHub issue

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).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:26 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
ericwooleycommented, Dec 13, 2016

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.

1reaction
ericwooleycommented, Dec 12, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found