[lsst-dm-stack-users] git access rights

Mario Juric mjuric at lsst.org
Fri Apr 4 07:34:56 PDT 2014


On 4/4/14, 6:57 , Fabrice Jammes wrote:
> Hello,
> 
> Next section of LSST wiki
> :https://dev.lsstcorp.org/trac/wiki/GitDemoAndTutorial#LSSTrepositories
> explains that users can delete tag created in their personal branch.
> 
> I tried to , but i can't :
> <https://dev.lsstcorp.org/trac/wiki/GitDemoAndTutorial#LSSTrepositories>
> eups at clrlsst-dbmaster-vm:~/src/qserv/eupspkg/dist (u/fjammes/master) $
> git push --delete origin 6.0.0rc1-master
> remote: + refs/tags/6.0.0rc1-master LSST/DMS/qserv fjammes DENIED by
> fallthru
> remote: error: hook declined to update refs/tags/6.0.0rc1-master
> To ssh://git@dev.lsstcorp.org/LSST/DMS/qserv
>  ! [remote rejected] 6.0.0rc1-master (hook declined)
> error: failed to push some refs to
> 'ssh://git@dev.lsstcorp.org/LSST/DMS/qserv'
> 

(moving to lsst-data, as this is more devloper-related discussion).

Fabrice,
	The system's actually behaving as expected. git doesn't have the notion
of tags on a particular branch -- all tags are global. So if you create
a tag 6.0.0rc1-master, it's a global tag that looks (is) a version and
needs to be protected (gitolite has no way to know this wasn't already
released and distributed somewhere).

While the docs are admittedly unclear, what they say is that you're
allowed to create and delete tags of the form /u/USER/.... So, in your
case, you'd be able to do:

    git tag u/fjammes/6.0.0.rc1-master
    git push origin :u/fjammes/6.0.0.rc1-master

but not

    git push :6.0.0.rc1-master

That said, if there's a compelling need and Jacek agrees, we could add
you extra permissions on the qserv repo and then you could do what you
need, but would need to be *very* *very* careful, not to remove any tags
that are in use.

Sounds reasonable?
-- 
Mario Juric,
Data Mgmt. Project Scientist, Large Synoptic Survey Telescope
Web : http://research.majuric.org     Phone : +1 617 744 9003



More information about the dm-users mailing list