The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events