Comments (4)
I'm closing this now, but will reopen once you can find steps that would allow us to reproduce this issue.
from magit.
To reproduce, you could use the following steps:
I tried to capture those steps in the script below.
script
#!/bin/sh
set -eu
root=$(mktemp -d root-XXXX)
mkdir "$root"/parent
ln -s parent "$root"/link
repo=$root/parent/repo
git init -q "$repo"
git -C "$repo" commit -q --allow-empty -mc1
git -C "$repo" commit -q --allow-empty -mc2
git -C "$repo" worktree add -q ../worktree
wtree="$root"/parent/worktree
printf 'foo\n' >"$wtree/foo"
git -C "$wtree" add .
export PS4='$ '
set -x
ls -1 "$root"
ls -1 "$root"/parent
stat -c %N "$root"/link
ls -1 "$root"/link
git -C "$wtree" status -s
resulting state:
$ ls -1 root-1fiW
link
parent
$ ls -1 root-1fiW/parent
repo
worktree
$ stat -c %N root-1fiW/link
'root-1fiW/link' -> 'parent'
$ ls -1 root-1fiW/link
repo
worktree
$ git -C root-1fiW/parent/worktree status -s
A foo
I then visited root-*/link/worktree
with Emacs and was able to commit the staged change via Magit.
That's with the current tip of main (2b02bfb), Emacs 29.1, and a vanilla configuration on a GNU/Linux system. I also tried with the commit you referenced (51eaa9f).
Does the above script capture the setup you're describing? If not, could you suggest the changes required for it to reproduce the issue?
Also, have you confirmed that you can commit from the command line when in the link/worktree
directory (e.g., git commit -m blah
)?
from magit.
@kyleam Thank you for helping me with the issue. I will examine the reproduction steps to correctly understand my problem.
from magit.
As @kyleam pointed out, there is no error that occurs within the reproduction steps above. The issue does remain, but I don't know exact reproduction steps. I'll update this ticket if I find some more information.
from magit.
Related Issues (20)
- Stage hunk in tramp session result in infinity loop HOT 2
- When doing worktree diff with a commit, apply/reverse doesn't work in the diff buffer HOT 3
- Setting `safe.bareRepository=explicit` breaks magit commit HOT 1
- magit-diff-paths output is not washed HOT 1
- Error in `magit-repolist-column-version` function: (wrong-type-argument integer-or-marker-p nil) HOT 1
- `magit-log` with `--author=` argument hangs with `vertico-mode` when `transient-default-level` is 7 HOT 2
- Magit should always specify --git-dir or GIT_DIR when cd-ing to a gitdir to run some Git subcommand. HOT 19
- Binding C-<tab> conflicts with Emacs' tab-bar-mode HOT 1
- Non-existing tramp function advised in magit-process.el HOT 1
- Confirm commit message when running emacs as client HOT 5
- Trying to visit files in `magit-diff-paths` output leads to wrong path
- large git merges make magit-process buffer grow quickly
- `Filter! diff.ignoreSubmodules=untracked` on top of magit buffer is confusing
- Unable to recursively init submodules HOT 1
- submodule update with universal argument still prompts for submodule selection when there is only one submodule HOT 2
- Invalid slot name: "#<magit-section ...>", :value
- Some update broke my custom git-commit-hook to insert comment into commit buffer HOT 3
- Magit push doesn't respect configured refspecs HOT 2
- Pressing RET (magit-visit-thing) on an URL in the magit-process buffer doesn't open URL HOT 4
- magit-log with --patch but without --graph errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magit.