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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,745 views 1 5
Read article

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