Skip to content

Running straight-freeze-versions reports several errors #1267

@haji-ali

Description

@haji-ali

When I tried running straight-freeze-versions (from my radian config), I get several errors of the form

$ git merge-base --is-ancestor master origin/master

fatal: Not a valid object name origin/master

[Return code: 128]

$ cd /Users/ah180/Documents/Projects/dotfiles/emacs/dot-config/emacs/.elocal/straight/repos/emacs-which-key/
$ git --no-pager log --format\=\%h\ \%s origin/master..master

fatal: ambiguous argument 'origin/master..master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

[Return code: 128]

This happens with several repos (like el-patch, straight, use-package, blackout, no-littering, etc) but not all of them.

For some reason, inside these repos the only branches are the local ones (main or master) and origin does not have any fetched branches. For example, in el-patch

$ git remote show origin
* remote origin
  Fetch URL: https://github.com/radian-software/el-patch.git
  Push  URL: https://github.com/radian-software/el-patch.git
  HEAD branch: main
  Remote branches:
    main         new (next fetch will store in remotes/origin)
    rr-add-tests new (next fetch will store in remotes/origin)
  Local ref configured for 'git push':
    main pushes to main (local out of date)

but git branch -a shows only main.

My version of straight is from the commit: 645eeb9 (prerelease (grafted, HEAD -> develop) 645eeb9 2025-06-23)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions