Skip to content

Fix drone state computation when the Emacs directory is not git root#183

Merged
tarsius merged 1 commit into
emacscollective:mainfrom
ErikPrantare:fix-drone-states-default-directory
Jun 3, 2026
Merged

Fix drone state computation when the Emacs directory is not git root#183
tarsius merged 1 commit into
emacscollective:mainfrom
ErikPrantare:fix-drone-states-default-directory

Conversation

@ErikPrantare

Copy link
Copy Markdown
Contributor

git diff-index emits a path relative to root. If root differed from
borg-user-emacs-directory, (expand-file-name module) expanded to
the wrong path. This led to the version always being REMOVE on
borg-insert-update-message if the Emacs directory was not the same
as the git directory.

This pull request instead sets default directory in the drone state
computation to borg-top-level-directory.

"git diff-index" emits paths relative to root.  Therefore,
if `borg-user-emacs-directory' is a subdirectory, it is not
appropriate to operate in that directory.
@tarsius tarsius force-pushed the fix-drone-states-default-directory branch from b923e7e to 04fc19e Compare June 2, 2026 23:45
@tarsius

tarsius commented Jun 2, 2026

Copy link
Copy Markdown
Member

Thanks!

@tarsius tarsius merged commit 04fc19e into emacscollective:main Jun 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants