I used to be able to push commits to the master branch all the time. But in the last month or two something has changed and when I try to push a change to master, I get the message:
remote: GitLab: You are not allowed to push code to protected branches on this project. To common-lisp.net:f2cl/f2cl.git ! [remote rejected] master -> master (pre-receive hook declined)
I see that master is a protected branch. (I don't remember changing that or if it was always protected.)
So I created a merge request https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 Now it says I have to go find someone with write access to merge the request. Oddly, just a month ago, I successfully merged the requests https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/2 and https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/1.
As the owner, I would think I have enough rights both to push to the protected branch and to merge my own merge requests.
Any ideas? https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3
Ray,
If you go to Settings -> Branch, you should be able to see your protected branches and who has permission to do what to them, and as project owner you should be able to change those permissions. Gitlab might have changed defaults, which would explain why you are seeing different behavior (though I would expect existing projects to stay as set). It is not unreasonable to require merge requests of everyone, even the owner. Speaking as someone who (more than once) has accidentally pushed a change to master that I intended to go to another branch, I appreciate that feature.
If that isn't the problem, then I think Erik will need to step in and investigate.
Liam
On Fri, May 19, 2017 at 10:11 AM, Raymond Toy toy.raymond@gmail.com wrote:
I used to be able to push commits to the master branch all the time. But in the last month or two something has changed and when I try to push a change to master, I get the message:
remote: GitLab: You are not allowed to push code to protected branches on this project. To common-lisp.net:f2cl/f2cl.git ! [remote rejected] master -> master (pre-receive hook declined)
I see that master is a protected branch. (I don't remember changing that or if it was always protected.)
So I created a merge request https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 Now it says I have to go find someone with write access to merge the request. Oddly, just a month ago, I successfully merged the requests https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/2 and https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/1.
As the owner, I would think I have enough rights both to push to the protected branch and to merge my own merge requests.
Any ideas? https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3
-- Ray
Hi Raymond,
For some reason 'master' was a protected branch. I've removed the branch protection through the project
On Fri, May 19, 2017 at 5:11 PM, Raymond Toy toy.raymond@gmail.com wrote:
I used to be able to push commits to the master branch all the time. But in the last month or two something has changed and when I try to push a change to master, I get the message:
remote: GitLab: You are not allowed to push code to protected branches on this project. To common-lisp.net:f2cl/f2cl.git ! [remote rejected] master -> master (pre-receive hook declined)
I see that master is a protected branch. (I don't remember changing that or if it was always protected.)
So I created a merge request https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 Now it says I have to go find someone with write access to merge the request. Oddly, just a month ago, I successfully merged the requests https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/2 and https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/1.
As the owner, I would think I have enough rights both to push to the protected branch and to merge my own merge requests.
Any ideas? https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3
-- Ray
Hi Raymond,
For some reason 'master' was a protected branch. I've removed the branch protection through the project
On Fri, May 19, 2017 at 5:11 PM, Raymond Toy toy.raymond@gmail.com wrote:
I used to be able to push commits to the master branch all the time. But in the last month or two something has changed and when I try to push a change to master, I get the message:
remote: GitLab: You are not allowed to push code to protected branches on this project. To common-lisp.net:f2cl/f2cl.git ! [remote rejected] master -> master (pre-receive hook declined)
I see that master is a protected branch. (I don't remember changing that or if it was always protected.)
So I created a merge request https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 Now it says I have to go find someone with write access to merge the request. Oddly, just a month ago, I successfully merged the requests https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/2 and https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/1.
As the owner, I would think I have enough rights both to push to the protected branch and to merge my own merge requests.
Any ideas? https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3
-- Ray
Fri, May 19, 2017 at 8:30 PM, Erik Huelsmann ehuels@gmail.com wrote:
Hi Raymond,
For some reason 'master' was a protected branch. I've removed the branch protection through the project
's "Settings > Repository" page. There was a "Protect branch" heading, with a listing of currently protected branches below it.
For any other projects with protected branches, doing the same should be the solution.
Regards,
Erik.
On Fri, May 19, 2017 at 5:11 PM, Raymond Toy toy.raymond@gmail.com wrote:
I used to be able to push commits to the master branch all the time. But in the last month or two something has changed and when I try to push a change to master, I get the message:
remote: GitLab: You are not allowed to push code to protected branches on this project. To common-lisp.net:f2cl/f2cl.git ! [remote rejected] master -> master (pre-receive hook declined)
I see that master is a protected branch. (I don't remember changing that or if it was always protected.)
So I created a merge request https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 Now it says I have to go find someone with write access to merge the request. Oddly, just a month ago, I successfully merged the requests https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/2 and https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/1.
As the owner, I would think I have enough rights both to push to the protected branch and to merge my own merge requests.
Any ideas? https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3
-- Ray
-- Bye,
Erik.
http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
Yes, I'm sure making master no longer be a protected branch would work (but not yet tested).
However, I was more concerned by that fact that as Owner, I couldn't commit to master. And why, as Owner, I couldn't even approve my own merge request to master.
I do see, now that Erik has made master no longer protected, I can now merge my merge request.
On Fri, May 19, 2017 at 11:32 AM, Erik Huelsmann ehuels@gmail.com wrote:
Fri, May 19, 2017 at 8:30 PM, Erik Huelsmann ehuels@gmail.com wrote:
Hi Raymond,
For some reason 'master' was a protected branch. I've removed the branch protection through the project
's "Settings > Repository" page. There was a "Protect branch" heading, with a listing of currently protected branches below it.
For any other projects with protected branches, doing the same should be the solution.
Regards,
Erik.
On Fri, May 19, 2017 at 5:11 PM, Raymond Toy toy.raymond@gmail.com wrote:
I used to be able to push commits to the master branch all the time. But in the last month or two something has changed and when I try to push a change to master, I get the message:
remote: GitLab: You are not allowed to push code to protected branches on this project. To common-lisp.net:f2cl/f2cl.git ! [remote rejected] master -> master (pre-receive hook declined)
I see that master is a protected branch. (I don't remember changing that or if it was always protected.)
So I created a merge request https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 Now it says I have to go find someone with write access to merge the request. Oddly, just a month ago, I successfully merged the requests https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/2 and https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/1.
As the owner, I would think I have enough rights both to push to the protected branch and to merge my own merge requests.
Any ideas? https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3
-- Ray
-- Bye,
Erik.
http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
-- Bye,
Erik.
http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
On Fri, May 19, 2017 at 4:15 PM, Raymond Toy toy.raymond@gmail.com wrote:
Yes, I'm sure making master no longer be a protected branch would work (but not yet tested).
However, I was more concerned by that fact that as Owner, I couldn't commit to master. And why, as Owner, I couldn't even approve my own merge request to master.
Maybe that's the problem. I'm owner and don't have Master (or Developer) permissions. Can't seem to find anyway to give myself such permissions. I do see that Fare has Developer access and there's a pulldown menu to allow me to change it (and set an expiration date).
I do see, now that Erik has made master no longer protected, I can now merge my merge request.
On Fri, May 19, 2017 at 11:32 AM, Erik Huelsmann ehuels@gmail.com wrote:
Fri, May 19, 2017 at 8:30 PM, Erik Huelsmann ehuels@gmail.com wrote:
Hi Raymond,
For some reason 'master' was a protected branch. I've removed the branch protection through the project
's "Settings > Repository" page. There was a "Protect branch" heading, with a listing of currently protected branches below it.
For any other projects with protected branches, doing the same should be the solution.
Regards,
Erik.
On Fri, May 19, 2017 at 5:11 PM, Raymond Toy toy.raymond@gmail.com wrote:
I used to be able to push commits to the master branch all the time. But in the last month or two something has changed and when I try to push a change to master, I get the message:
remote: GitLab: You are not allowed to push code to protected branches on this project. To common-lisp.net:f2cl/f2cl.git ! [remote rejected] master -> master (pre-receive hook declined)
I see that master is a protected branch. (I don't remember changing that or if it was always protected.)
So I created a merge request https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 Now it says I have to go find someone with write access to merge the request. Oddly, just a month ago, I successfully merged the requests https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/2 and https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/1.
As the owner, I would think I have enough rights both to push to the protected branch and to merge my own merge requests.
Any ideas? https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3
-- Ray
-- Bye,
Erik.
http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
-- Bye,
Erik.
http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
-- Ray
Hi Raymond,
On Sat, May 20, 2017 at 1:20 AM, Raymond Toy toy.raymond@gmail.com wrote:
On Fri, May 19, 2017 at 4:15 PM, Raymond Toy toy.raymond@gmail.com wrote:
Yes, I'm sure making master no longer be a protected branch would work (but not yet tested).
However, I was more concerned by that fact that as Owner, I couldn't commit to master. And why, as Owner, I couldn't even approve my own merge request to master.
Maybe that's the problem. I'm owner and don't have Master (or Developer) permissions. Can't seem to find anyway to give myself such permissions. I do see that Fare has Developer access and there's a pulldown menu to allow me to change it (and set an expiration date).
This document ( https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/user/permissions.md) says that an owner should be able to do everything a developer can...
So, if you can't push or merge to your master branch, then I'd say that's a bug.
Or maybe I'm misunderstanding your use-case or their documentation...
Regards,
Erik.
I do see, now that Erik has made master no longer protected, I can now
merge my merge request.
On Fri, May 19, 2017 at 11:32 AM, Erik Huelsmann ehuels@gmail.com wrote:
Fri, May 19, 2017 at 8:30 PM, Erik Huelsmann ehuels@gmail.com wrote:
Hi Raymond,
For some reason 'master' was a protected branch. I've removed the branch protection through the project
's "Settings > Repository" page. There was a "Protect branch" heading, with a listing of currently protected branches below it.
For any other projects with protected branches, doing the same should be the solution.
Regards,
Erik.
On Fri, May 19, 2017 at 5:11 PM, Raymond Toy toy.raymond@gmail.com wrote:
I used to be able to push commits to the master branch all the time. But in the last month or two something has changed and when I try to push a change to master, I get the message:
remote: GitLab: You are not allowed to push code to protected branches on this project. To common-lisp.net:f2cl/f2cl.git ! [remote rejected] master -> master (pre-receive hook declined)
I see that master is a protected branch. (I don't remember changing that or if it was always protected.)
So I created a merge request https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3 Now it says I have to go find someone with write access to merge the request. Oddly, just a month ago, I successfully merged the requests https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/2 and https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/1.
As the owner, I would think I have enough rights both to push to the protected branch and to merge my own merge requests.
Any ideas? https://gitlab.common-lisp.net/f2cl/f2cl/merge_requests/3
-- Ray
-- Bye,
Erik.
http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
-- Bye,
Erik.
http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
-- Ray
-- Ray
Are you sure, that commit you want to push share the same history? Afaik protected branches never permit forced push (i.e reset few commits back) and such disregarding the commiter permissions.
Regards, Daniel
On 5/20/17 1:48 AM, Daniel Kochmański wrote:
Are you sure, that commit you want to push share the same history? Afaik protected branches never permit forced push (i.e reset few commits back) and such disregarding the commiter permissions.
No, I'm not sure. But IIRC, the error message would have been something else.
And that doesn't explain why I couldn't merge my own merge request, where the gui was asking me to find someone with commit access.
I'm going to do a few quick tests soon, just to verify what happened.
On Sun, May 21, 2017 at 7:46 AM, Raymond Toy toy.raymond@gmail.com wrote:
On 5/20/17 1:48 AM, Daniel Kochmański wrote:
Are you sure, that commit you want to push share the same history? Afaik protected branches never permit forced push (i.e reset few commits back) and such disregarding the commiter permissions.
No, I'm not sure. But IIRC, the error message would have been something else.
And that doesn't explain why I couldn't merge my own merge request, where the gui was asking me to find someone with commit access.
I'm going to do a few quick tests soon, just to verify what happened.
Well, it's weird. I changed the master branch back to a protected branch. Edited a file and pushed it successfully to the master branch.
Not sure what I was doing wrong before, but I'm going to leave it this way for a bit and see what happens.