[Bug]: Remote branch selection uses an unresolved local branch name when creating a workspace
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- git
- Ambito
- tooling
Direzione di ricerca
Inizia dal flusso di creazione dell'area di lavoro che gestisce il branch Remote selezionato e traccia il valore passato al comando git checkout -B. Riproduci il problema con un branch presente solo sul Remote, come master-updated-stu, quindi verifica che la creazione dell'area di lavoro riesca usando il riferimento di tracking remoto e che l'area di lavoro risultante sia basata sul commit selezionato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Platform
Windows
Operating system version
11
System architecture
Windows
PolyScope Version
0.26
Bug description
Creating a workspace from a non-default branch fails even when I select that branch from the Remote branches section.
Polyscope appears to discard the remote qualification and passes the branch’s short name to git checkout -B. The new clone only contains the branch as a remote-tracking ref, so Git cannot resolve the supplied start-point.
Inspection of the failed clone shows:
refs/heads/master
refs/remotes/origin/master-updated-stu
The remote-tracking ref resolves successfully:
git rev-parse --verify "origin/master-updated-stu^{commit}"
But the short local name does not:
git rev-parse --verify "master-updated-stu^{commit}"
fatal: Needed a single revision
Steps to reproduce
- Open a repository whose default/current branch is master.
- Ensure another branch, such as master-updated-stu, exists on origin.
- Start creating a new workspace "from branch"
- Search for or select relevant branch name.
- Select the entry marked Remote.
- Create the workspace.
Relevant log output
Command failed: git checkout -B "brave-moth" "master-updated-stu"
fatal: 'master-updated-stu' is not a commit and a branch 'brave-moth' cannot be created from it
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 20
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di beyondcode/polyscope-community
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
[Bug]: Large workspace causes permanent server reconnect loop when a remote client subscribes Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
beyondcode/polyscope-community#198 · 1 commento · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
beyondcode/polyscope-community#189 · 1 commento · 2 reazioni ·
Tutte le issue di beyondcode/polyscope-community
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 commento ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 commento ·
-
Solved site promotion gate fails on runner PHP patch drift (expects 8.2.33, runner installs 8.2.34) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Automattic/blocks-engine#2161 ·