• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Forwarded to devs Git Extension doesn't remove deleted branches

TurnRound

New Pleskian
TITLE:
Git Extension doesn't remove deleted branches
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Git Extension 1.1.1-228
Plesk Onyx 17.8.11 Update #48
CentOS Linux 7.6.1810 (Core)‬
PROBLEM DESCRIPTION:
I'm successfully using the Plesk Git Extension to pull updates from Github to my development and production sites.

However, branches I've deleted from my local dev environment and from Github are not deleted from the Branch menu in the extension (under Change branch and path).

Every branch I've ever created is still listed there, despite having been deleted from Github.

Clicking the Pull Updates button doesn't remove the old branches.​
STEPS TO REPRODUCE:
1. Setup the Git extension to pull updates from a Github repo.
2. Create a new branch on the Github repo.
3. Click Pull Updates in the websites Git section in Plesk
4. Click Change branch and path and see that the new branch is listed on the Branch menu
5. In the Github repo, delete the newly created branch
6. In Plesk Git Extension, click Pull Updates
7. Click Change branch and path and notice that the deleted branch (and every other branch ever created) is listed on the Branch menu​
ACTUAL RESULT:
The Branch menu in the Change branch and path dialog still shows all deleted branches.​
EXPECTED RESULT:
After deleting a branch from Github and clicking Pull Updates, I would expect the deleted branches to be removed from the Branch menu in the Change branch and path dialog, as they no longer exist on the remote.​
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 

Attachments

  • 2019-04-02 at 10.02.png
    2019-04-02 at 10.02.png
    62.7 KB · Views: 3
From developer:

This happens because of ext-git displays all available (local and remote) branches.
After switching to a new brunch, it was copied to the local git repository, and deleting the branch on the remote repository does not remove the branch in the local copy
Currently, ext-git does not support local branch management from the plesk interface, if this functionality is in demand, you need to make a vote on this at Feature Suggestions: Top (1371 ideas) – Your Ideas for Plesk.

Alternative solutions:

  • remove the integration with the repository on the domain and re-create it.
  • If you are an administrator and you have root access, you can remove the local brunch using the command:
    '/opt/psa/admin/bin/modules/git/git-helper' '<user login>' '/var/www/vhosts/<domain name>/git/hello.git' '--git-dir=/var/www/vhosts/<domain name>/git/<git file>' 'branch' '-d' '<branch to remove>'
 
Back
Top