hraban / tomono

Multi- To Mono-repository merge
https://tomono.0brg.net
GNU Affero General Public License v3.0
842 stars 138 forks source link

change delimiters in sed, because path can contain _ #15

Closed chilladx closed 6 years ago

chilladx commented 6 years ago

I encountered an error when the path of the subdirectory contained _, as this was used as sed delimiter:

$ cat repos.txt | ./tomono.sh --continue
~/dev/project/repo ~/dev/project
Merging in git@gitlab.com:project/repo-with-dashes..
Fetching subdir_with_underscores..
sed: 1: "s_subdir_with_underscores/__
": bad flag in substitute command: 'c'

Using | as sed delimiter is unlikely to cause any conflict.

hraban commented 6 years ago

Hi, please see #11 and pr #13 . The maintainers of this repo hibernate for about 1 year between checking this, so they should be merged hopefully by jan 2019. In the mean time, you can use my fork, https://github.com/hraban/tomono/tree/robust-remotes .

sweeney commented 6 years ago

https://github.com/unravelin/tomono/pull/13