I am using SourceTree. I have created a local repository and configured a remote for a specific customer. I also have a remote repo that I want to use as a subtree for core functionality. For the customer repo, I have performed an initial commit of the customer's specific files. I then used the Add/Link subtree option to create the subtree. The relative path is . as I want the subtree repo's files in the root of the customer's repo. I then pull from the subtree and that works fine. I can also push to the customer's remote. Everything seems to be working until I modify a subtree file and try to push that to the subtree remote repo. I can push to the customer's repo but I want to be able to push changes to the subtree as well so that those changes can be propagated to other customers if we so choose. When I attempt to push to the subtree remote, I receive the following error(s) even though I know definitively that a core subtree file has changed:

1/ 5 (0)assertion failed: [ custom = . ]

2/ 5 (1)assertion failed: [ .gitignore = . ]

3/ 5 (2)assertion failed: [ .gitignore = . ]

4/ 5 (3)assertion failed: [ .gitignore = . ]

5/ 5 (4)assertion failed: [ .gitignore = . ]

No new revisions were found

 

Completed with errors, see above.

 

What am I doing incorrectly?

1 answer

This appears to be related to setting the subtree prefix to . in order to use the root directory. If I set the prefix to a sub-directly, e.g. core, everything appears to work fine and I can push to the subtree's remote repo. Is this expected behavior?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

166 views 20 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you