You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible that straight may fail to retrieve any new commits from the remote package repo, if the repository is already been cloned, and there has been a modification in the name of the remote HEAD branch (such as renamed from master to main).
Directions to reproduce
Create an new git repository with a single file with some text
In Emacs scratch buffer with straight.el loaded, fetch the repo using a custom recipy
(straight-use-package
'(issue :type git :repo"/tmp/issue-straight"))
;; => t
In the straight repo dir, check that the above repo has been checked out
/tmp/issue-straight$ cd~/.config/emacs/straight/repos/issue
~/.config/emacs/straight/repos/issue$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
~/.config/emacs/straight/repos/issue$ cat issue
123
~/.config/emacs/straight/repos/issue$
Back at the source repo, add some more text to the file
Perhaps straight can check the remote HEAD branch before a fetch/pull and adjust the local HEAD accordingly when they diverge?
The above example scenario was encountered with emasql where I suspect somewhere in the last year their renamed their master branch to main, and I was stuck with a year's old master branch that could not be updated with straight pull
(straight-pull-package "emacsql")
;; => nil
~/.config/emacs/straight/repos/emacsql $ git log -1
commit 6b2e65bdf785364cf7c34c31fea5812e1e58c657
Author: Jonas Bernoulli <[email protected]>
Date: Sun Nov 27 22:46:37 2022 +0100
Use new version string format for unreleased revisions
"N-git"<"N"; but "N.50-git">"N".
~/.config/emacs/straight/repos/emacsql $ git remote -v
origin https://github.com/magit/emacsql.git (fetch)
origin https://github.com/magit/emacsql.git (push)
~/.config/emacs/straight/repos/emacsql $ git symbolic-ref refs/remotes/origin/HEAD
refs/remotes/origin/master
~/.config/emacs/straight/repos/emacsql $ git ls-remote --symref origin HEAD
ref: refs/heads/main HEAD
59de83a1276a5fbcf8a682b64bbdcf5e00c6ce8b HEAD
Version information
Emacs version: 29.1
Operating system: unix
The text was updated successfully, but these errors were encountered:
What's wrong
It is possible that
straight
may fail to retrieve any new commits from the remote package repo, if the repository is already been cloned, and there has been a modification in the name of the remote HEAD branch (such as renamed frommaster
tomain
).Directions to reproduce
straight.el
loaded, fetch the repo using a custom recipymaster
tomain
, and add some more changesPerhaps straight can check the remote HEAD branch before a fetch/pull and adjust the local HEAD accordingly when they diverge?
The above example scenario was encountered with emasql where I suspect somewhere in the last year their renamed their
master
branch tomain
, and I was stuck with a year's oldmaster
branch that could not be updated with straight pullVersion information
The text was updated successfully, but these errors were encountered: