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

How can I do a read only checkout from stash

Jeff Stein December 23, 2014

I have a developer who wants to be able to make a pull-only checkout from stash.  He is able to do this on GitLab which is the other git server we are running at work.  

 

He wants it to be read only but stash "doesnt" seem to be setup to support this.  How can this be done?

2 answers

1 vote
TimP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 23, 2014

I'm not quite sure what your developer means by a pull-only checkout. As @Mike Friedrich suggested you could limit repository or branch permissions to limit a particular developer to have read-only access to the repository. Alternatively you could use git-archive to grab a read-only copy of the content of the repository at a certain revision?

0 votes
Mike Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 23, 2014

What is read only for you? You can always set branch permissions to read-only. That would disallow pushes to this branch.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events