When I "git push" git now says "Create pull request for ...". What for?

I am making changes to the project in the branch, which is still known to anyone except me. However, since recently, when I git push to this project, I now get this as part of the answer:

 remote: Create pull request for <<my branch>>: remote: https://bitbucket.org/... 

I have no idea why Git is giving me this message that I have never seen before.

Even if I delete the remote branch (with " git push origin :<<my branch>> ", I still get this message! (I successfully deleted the branch on the remote control, but the message remains)

+42
git bitbucket git-push githooks
May 28 '15 at
source share
3 answers

Note. These messages can now be disabled. See Jake's answer . Read my answer for a technical explanation.

All that remote: prefix remote: sent receiving script 1 to the server. Bitbucket probably wants to make it easier for you to create a transfer request.




1 An example of such a post-receive hook, using echo to send a message to the user, as described in the link above. It will be called immediately after all the machined data is completely saved on the server:

Both standard output and standard error output are sent to git send-pack at the other end, so you can simply echo messages for the user.

On server:

 git@example.com:~/stackoverflow.git/hooks$ cat post-receive #!/bin/bash echo "This is an example of a git hook running at the server" 

On the client:

 $ git push git@example.com:stackoverflow.git master:master Counting objects: 1, done. Writing objects: 100% (1/1), 187 bytes | 0 bytes/s, done. Total 1 (delta 0), reused 0 (delta 0) remote: This is an example of a git hook running at the server To git@example.com:stackoverflow.git 4751391..01882eb master -> master 
+29
May 28 '15 at 23:31
source share

I think TimWolla is right, but I just wanted to add this post from Atlassian explaining the Atlassian policy:

In Stash 3.3, a function was added that displays a message for users in the terminal with a link to create a transfer request when a new branch or a branch without pull requests is clicked. This guide explains how to disable this feature.

 remote: remote: Create pull request for ABC-123-fix-bug: remote: http://localhost:7990/projects/PROJ/repos/REPO/compare/commits?sourceBranch=refs/heads/ABC-123-fix-bug remote: 

Currently, this feature can be enabled or disabled globally. [...]

To disable this feature, follow these steps:

  • Go to the "Manage Add-ons" section of the Stash admin screens.
  • Choose System from the drop-down menu
  • Find the "Linked Hooks", expand it and its modules
  • Find the "print-branch-links-hook" module, click "Disable"
+22
Jun 02 '15 at 11:45
source share

TimWolla provided a full explanation, but here's how to do it in the long run: Provide your feedback on this support ticket to show that you share the disappointment expressed by other users on this issue.

UPDATE: As of 2016-09-27, this is no longer a problem, and Atlassian has provided an official answer on this.

The following are instructions for disabling these messages:

  • Log in to BitBucket with your browser.
  • Click on your user’s icon in the upper right corner of the window.
  • Go to BitBucket Settings
  • Uncheck the Enable console messages box.
  • Click the refresh button below.

Bitbucket Settings - Console Messages

+12
Jun 19 '15 at 22:19
source share



All Articles