We have a repository, git-flow based, where we added an external library as a subtree (using Atlassian SourceTree's git subtree) on the development branch.
Project/
Library/
X/
Y/
Z/
Later we did a git flow release
, merging the changes from develop into master (release).
The problem is when checking out master, the contents of Library get placed on the root of the repository instead of inside Library, like it had lost the git subtree
prefix during the merge.
Project/
X/
Y/
Z/
Any idea what's gone wrong?