Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SourceTree - Error when pushing to Gerrit

Bob Liu May 4, 2015

After I updated SourceTree to version 2.0.5.2, it cannot push commit to Gerrit. While using 2.0.1, it is OK. I think the reason is SourceTree using different push command.

The old version using like:

git push origin HEAD:refs/for/master

The new version using like:

git push origin HEAD:refs/heads/refs/for/master

Is there any way to let new version SourceTree using the same command like old ones?

 

2 answers

0 votes
Jim McNealy January 20, 2017

I was able to work around this by creating a git alias, then in Sourcetree create a custom action for the repo.

git config --global --add alias.pushooks 'push origin HEAD:refs/for/master'

Source tree custom action:

Script to run: git

Parameters: pushooks

Check Show full output

 

0 votes
Norbert Nemes June 1, 2015

I have the same problem. 2.0.4 is also OK.

Paul Townsend September 22, 2015

There is a bug open for this: https://jira.atlassian.com/browse/SRCTREE-2940

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events