Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Allow HTTP gist init to make repository with different visibility #316

Open
Juliaria08 opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Juliaria08
Copy link

Juliaria08 commented Sep 4, 2024

Use the git feature for server-specific push-options, and make one called visibility allowing public, unlisted, and private as values.

Edit: Noticed there's git-push-options, but that's not usable unless we want to manually send an empty commit at first, and then it'd only work if we wanted to make it private, because a crawler could otherwise get the gist's URL. (yes you could generate a new UUID but then the process of creating a hidden gist is less useful)

Edit2: I reloaded the web app, and saw that the gists I tried to create with git push -o visibility=unlisted -u origin master, and git push returned:

fatal: the receiving end does not support push options
fatal: the remote end hung up unexpectedly
error: failed to push some refs to 'https://gist.tilde.green/init'

Also made them have no revisions, making it having to manually push a revision for it to be able to be deleted. (Note, I didn't push a revision but I deleted the 0 revision gists from the admin dashboard)

Edit3: More info about the instance:

Opengist 	v1.7.3
Go 	go1.22.6
Git 	2.46.0
@thomiceli thomiceli added the enhancement New feature or request label Sep 4, 2024
@thomiceli thomiceli moved this to Backlog in Opengist Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants