where does branch name come from for svn dcommit?

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?

2 answers

0 votes

Hi

Can I check is this Windows v2.4.7.0 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.

Thanks for the information

The same thing started happening to me when I updated to version 2.7 on macOS.  Is there a fix for this?  I have been doing my pushes from the command line ever since this broke.  Same version, also GIT/SVN, macOS El Capitan 10.11.6 (15G19009).

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.

Thanks for the suggestion.  I have multiple branches.  When I right click on the branch I am trying to push I still get the same error.

Hey!  I tried it again and it worked!  Not sure what I did differently the first time I tried it but it filled in the correct branch and worked as expected.  Thanks for the work around...  It'll do until they fix the overall issue...

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.

Thanks for the info... It was a big help!

To all concerned this is fixed in version 2.7.1 (159)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

983 views 2 3
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