For some reason SourceTree has started giving me the following message when I push to my remote svn repository:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree svn dcommit invalid-branch
checkout invalid-branch: command returned error: 1
Pushing from the command line "git svn dcommit" works no problem. SourceTree is appending "invalid-branch" to the end of the command. Where does this come from and how do I remove it?
Can I check is this Windows v22.214.171.124 and you using Git/Svn?
Assuming it is and you get this error when trying to do a push, then Sourcetree thinks 'invalid-branch' is a branch name selected from the list of available branches. What do you see in the push dialog?
macOS Sourcetree Version 2.7 (152) and yes I am using Git/SVN.
There is only one branch "master" listed in the side bar under BRANCHES. When I click Push in the toolbar or select the menu item "Push to repository" shows "Subversion" with the correct URL next to it. The Push? checkbox is checked, the "Local Branch" shows "Current Branch", the "Remote Branch" is empty and the "Track?" checkbox is checked. I am unable to change any field in the "Branches to push" table. Clicking OK produces the messages provided before.
I have not seen a fix. FWIW I did discover that if I right click on the "master" branch in the side bar there is a "Push to" menu item that shows "Subversion". Selecting "Subversion" shows the the push sheet with the branch "master" filled in and now clicking OK works.
I have seen the "Push to" -> "Subversion" contextual menu item fail on a few (rare) occasions. I believe in those cases the remote branch was still blank in the push sheet. If the column is filled in ("master" in my case) it has always worked for me.
JFYI I did open a bug for this problem (SRCTREE-5301) some time back.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG