Skip to content

Fix importing commits which renamed files (Fixes #345) - #346

Merged
jamiebuilds merged 2 commits into
lerna:masterfrom
ryb73:fix-renames-during-import
Sep 26, 2016
Merged

jamiebuilds merged 2 commits into
lerna:masterfrom
ryb73:fix-renames-during-import

Conversation

@ryb73

@ryb73 ryb73 commented Sep 25, 2016 •

Copy link
Copy Markdown
Contributor

fixes #345

git format-patch outputs something like this for renames:

diff --git a/test1 b/test2
similarity index 100%
rename from test1
rename to test2

Previously ImportCommand would properly replace a/test1 and a/test2 with the proper relative paths, but would not replace the "rename" lines, which would cause an error.

@lock

lock Bot commented Dec 27, 2018

Copy link
Copy Markdown

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants