"Quick instructions" stays when using write deploy keys #1541

Closed
opened 2025-11-02 04:04:25 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @GeoffreyFrogeye on GitHub (Feb 17, 2018).

Description

When you create a new empty repository (so that you get the "Quick instructions" page) and push only using only write-enabled deploy keys, the "Quick instructions" page doesn't go away, even though the repository is still clonable with all its commits.

Steps to reproduce

  • Create a new repository, don't check the checkbox that initialize the repository with files
  • Create a SSH key, add it as a write-enabled deploy key to the repository
  • Create or use any repository with at least a commit
  • Push this repository using the newly created SSH key (beware, depending on your SSH configuration it is really easy to use your account-bound SSH key which does not trigger the bug. I recommend to use a fresh account (either on the gitea server or a system account))
  • Contemplate the "Quick instructions" page again
  • Try cloning the repository : you get your commits
Originally created by @GeoffreyFrogeye on GitHub (Feb 17, 2018). - Gitea version (or commit ref): 1.4.0-rc1, b29c358 - Git version: 2.16.1-1 - Operating system: Arch Linux latest - Database: - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes: https://try.gitea.io/GeoffreyFrogeye/writeDeployKey (try cloning the repository, there is a commit) - [ ] No - [ ] Not relevant - Log gist: Not relevant ## Description When you create a new empty repository (so that you get the "Quick instructions" page) and push only using only write-enabled deploy keys, the "Quick instructions" page doesn't go away, even though the repository is still clonable with all its commits. ## Steps to reproduce - Create a new repository, don't check the checkbox that initialize the repository with files - Create a SSH key, add it as a write-enabled deploy key to the repository - Create or use any repository with at least a commit - Push this repository using the newly created SSH key (beware, depending on your SSH configuration it is really easy to use your account-bound SSH key which does not trigger the bug. I recommend to use a fresh account (either on the gitea server or a system account)) - Contemplate the "Quick instructions" page again - Try cloning the repository : you get your commits
Author
Owner

@stale[bot] commented on GitHub (Feb 8, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 8, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@lunny commented on GitHub (Feb 8, 2019):

@GeoffreyFrogeye Is this still a problem? I think it has been resolved.

@lunny commented on GitHub (Feb 8, 2019): @GeoffreyFrogeye Is this still a problem? I think it has been resolved.
Author
Owner

@GeoffreyFrogeye commented on GitHub (Feb 8, 2019):

This is still a problem, I just tested it here: https://git.frogeye.fr/geoffrey/gitea-3524-test.

@GeoffreyFrogeye commented on GitHub (Feb 8, 2019): This is still a problem, I just tested it here: <https://git.frogeye.fr/geoffrey/gitea-3524-test>.
Author
Owner

@zeripath commented on GitHub (Feb 8, 2019):

The fix wasn't in 1.7.1 - it's on master and current 1.7 branch.

@zeripath commented on GitHub (Feb 8, 2019): The fix wasn't in 1.7.1 - it's on master and current 1.7 branch.
Author
Owner

@GeoffreyFrogeye commented on GitHub (Feb 8, 2019):

Let me try again on https://try.gitea.io then.

@GeoffreyFrogeye commented on GitHub (Feb 8, 2019): Let me try again on <https://try.gitea.io> then.
Author
Owner

@GeoffreyFrogeye commented on GitHub (Feb 8, 2019):

It is indeed fixed (see : https://try.gitea.io/GeoffreyFrogeye/gitea-3524-test). Thanks!

@GeoffreyFrogeye commented on GitHub (Feb 8, 2019): It is indeed fixed (see : <https://try.gitea.io/GeoffreyFrogeye/gitea-3524-test>). Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1541