# read-tree bug

2 messages from 2014-05-06 to 2014-05-06. Participants: Klishevich, Yauheni.
Thread: https://gitlist.dev/t/36587

## Klishevich, Yauheni, 2014-05-06 12:35

Subject: read-tree bug
Message-ID: <CF8EB1C1.996%yklishevich@scnsoft.com>
URL: https://gitlist.dev/e/CF8EB1C1.996%25yklishevich%40scnsoft.com

```
Hello!

I have some troubles with git command ³read-tree².

I have big project and I try to add shared library to subdirectory. So I
made the following in my project (on master)

git remote add git@bitbucket.org:ijin1984/groundwork.git
git fetch groundwork
git checkout ­b gwbranch groundwork/master
git checkout master
git read-tree --prefix=mb/trunk/src/ru.uralsib.dbo.client.iphone/libs/ -u
gwbranch
git commit ­m ³add groundwork to libs²
After that I make small change in one file inside libs (for example in
"mb/trunk/src/ru.uralsib.dbo.client.iphone/libs/groundwork/notes.txt² and
commit with 
git commit ­a ­m ³test commit²

Then I made: 
git checkout gwbranch
git merge --squash -s subtree --no-commit master

And after this instead of merging I find the whole main project in subdir
³groundwork/Groundwork/Base.lproj².

If I do the 5-th command with ‹prefix option value equal to for example
³libs² tether than something like ³subdir/subsubdir/Š/libs² - all works
fine.

I think that it is bag, because I experimented quite a lot with deferrent
values. I think that problem in directory name with dots, i.e.
"ru.uralsib.dbo.client.iphone².

Could you please help me with this issue. If you need to add some more
info about this case I will provide.

Thanks in advance.


Best regards, 
Eugene Klishevich
iOS-developer
skype: eugene.klishevich

```

## Klishevich, Yauheni, 2014-05-06 13:32

Subject: read-tree bug
Message-ID: <CF8EBE3A.9AF%yklishevich@scnsoft.com>
URL: https://gitlist.dev/e/CF8EBE3A.9AF%25yklishevich%40scnsoft.com
In-Reply-To: <CF8EB1C1.996%yklishevich@scnsoft.com>

```
Some more info:

	If I use in 5-th command “—prefix=--prefix=mb/trunk/src/libs“ - issue is
reproduced

	If “—prefix=--prefix=mb/libs“ - all work fine

	With “—prefix=--prefix=mb/trunk/libs“ I haven’t tried, if it is desired
to check this case, just let me know.






On 5/6/14, 15:35, "Klishevich, Yauheni" <yklishevich@scnsoft.com> wrote:

>Hello!
>
>I have some troubles with git command ³read-tree².
>
>I have big project and I try to add shared library to subdirectory. So I
>made the following in my project (on master)
>
>git remote add git@bitbucket.org:ijin1984/groundwork.git
>git fetch groundwork
>git checkout ­b gwbranch groundwork/master
>git checkout master
>git read-tree --prefix=mb/trunk/src/ru.uralsib.dbo.client.iphone/libs/ -u
>gwbranch
>git commit ­m ³add groundwork to libs²
>After that I make small change in one file inside libs (for example in
>"mb/trunk/src/ru.uralsib.dbo.client.iphone/libs/groundwork/notes.txt² and
>commit with 
>git commit ­a ­m ³test commit²
>
>Then I made: 
>git checkout gwbranch
>git merge --squash -s subtree --no-commit master
>
>And after this instead of merging I find the whole main project in subdir
>³groundwork/Groundwork/Base.lproj².
>
>If I do the 5-th command with ‹prefix option value equal to for example
>³libs² tether than something like ³subdir/subsubdir/Š/libs² - all works
>fine.
>
>I think that it is bag, because I experimented quite a lot with deferrent
>values. I think that problem in directory name with dots, i.e.
>"ru.uralsib.dbo.client.iphone².
>
>Could you please help me with this issue. If you need to add some more
>info about this case I will provide.
>
>Thanks in advance.
>
>
>Best regards, 
>Eugene Klishevich
>iOS-developer
>skype: eugene.klishevich
>
>
>
>


```
