Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
minnsey Atlassian Team Jan 18, 2018


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.

minnsey Atlassian Team Jan 19, 2018

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 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,291 views 4 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you