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

Unable to push with push-option

Kinga Naras
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 25, 2019

I'm creating pre-receive hook which needs to have access to environment variable created based on  git push --push-option=variable command but all I'm getting is 

fatal: the receiving end does not support push options

I've already changed my remote config and set advertisePushOptions to true and upgrade git version both on client and server side, but still issue remains.

Is it possible that Bitbucket doesn't support this git option?

 

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2019

Hi Kinga,

I've done some research and found something here that could be useful for you:

After searching through code until I found the actual tests for push options I found out you have to enable a specific config for the repository which is conveniently disabled by default: https://git-scm.com/docs/git-config#git-config-receiveadvertisePushOptions

You can enable it with

$ git config receive.advertisePushOptions true

If that desn't help you, can you let us know which Bitbucket Server version are you using? The pre-receive module hook has been deprecated in 5.0, you can read more about it at Pre-receive hook plugin module

Our developer Community might also have good resources for you, you can visit it here.

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events