Skip to content

Importing files with bad line endings #439

Closed

Description

@ericwooley

Importing a with bad line endings (since I'm on mac, they are windows line endings) seems to break things.

lerna init; and lerna import ../repairui/
HEAD is now at c54b77226 added lerna
Lerna v2.0.0-beta.30
Creating packages folder.
Updating package.json.
Updating lerna.json.
Successfully created Lerna files
Lerna v2.0.0-beta.30
About to import 1947 commits into from ../<my repo>/ into packages/<my repo>
? Are you sure you want to import these commits onto the current branch? Yes
Errored while running ImportCommand.execute
Failed to apply commit 5811b1456.
Error: Command failed: git am -3
.git/rebase-apply/patch:1942: trailing whitespace.
                        <polygon points="341.459,117.764 341.459,84.34 328.329,84.34 328.329,85.468 334.529,85.468 334.529,117.764 328.329,117.764 
.git/rebase-apply/patch:2093: trailing whitespace.

.git/rebase-apply/patch:34385: trailing whitespace.
        <polygon fill="none" stroke="#000000" stroke-width="1.5065" stroke-miterlimit="10" points="408.837,24.357 426.396,41.904 
.git/rebase-apply/patch:34387: trailing whitespace.

.git/rebase-apply/patch:34389: trailing whitespace.
        <polyline fill="none" stroke="#000000" stroke-width="1.229" stroke-miterlimit="10" points="372.859,102.439 349.568,42.12 
warning: squelched 42 whitespace errors
warning: 47 lines add whitespace errors.
error: Failed to merge in the changes.

Rolling back to previous HEAD (commit c54b77226).

Activity

  1. ericwooley commented on Dec 13, 2016

    @ericwooley
    Author

    @gigabo You might be interested, or have an insight.

    I'm also not sure if this is in fact the cause of the break, or just warnings that went out from git.

    Changing

    git am -3
    

    to

    git am -3 --whitespace=nowarnings
    

    Hides all the warnings.

  2. gigabo commented on Dec 13, 2016

    @gigabo
    Contributor

    :goberserk:

    Those whitespace warnings shouldn't be fatal...

    I wonder if we could use --ignore-whitespace or one of the other whitespace options to git am?

  3. ericwooley commented on Dec 13, 2016

    @ericwooley
    Author

    I'll try with --ignore-whitespace

  4. ericwooley commented on Dec 13, 2016

    @ericwooley
    Author

    No go, I'm going to look closer at that patch.

  5. stale commented on Dec 27, 2018

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  6. lock commented on Apr 3, 2019

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

  7. locked as resolved and limited conversation to collaborators on Apr 3, 2019
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions