Problem with git subtree push: can't find local file

I'm using subtrees to share an SDK between a number of projects. When I try to push the subtree from one of my projects, I'm getting the following error. I'm using this command:

git subtree push --prefix <prefix> <repo> master --squash
git push using: <repo> master

open <repo-path>\SDK\Plugins\<file>.dll: The system cannot find the path specified.

In this case, <path> is incorrect. It is the path to the root repository and not the file itself. It should be looking for:

<repo-path>\<prefix>\SDK\Plugins\<file>.dll

So in this case, it's as though the push is ignoring the prefix. This command works fine in other repos.

One possible explanation is that this repo was using LFS for the dlls. That said, I've disabled LFS for these files, but I'm still getting the error.

I'm totally stumped on this. I can just hand-copy the subtree to a project that's working, but I'd like to try to understand what's going on.

0 answers

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...

29,325 views 26 12
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