git-xargs icon indicating copy to clipboard operation
git-xargs copied to clipboard

Error on one repository : worktree contains unstaged changes

Open alessandro-candon opened this issue 2 years ago • 7 comments

Describe the bug When I try to apply a "command" to a list of reporitories it works perfectly on all of them except for one that return the error in attached.

Error="worktree contains unstaged changes"

To Reproduce

I can't reproduce it manually, I try to clone the project and checkout a new branch with this command git checkout -b "core/update" but I can't reproduce the error "manually".

Screenshot 2022-04-19 at 10 09 44

Expected behavior

Normal behavior, so checkout and apply the command.

alessandro-candon avatar Apr 19 '22 08:04 alessandro-candon

Update :

I also try with a simpler command

git-xargs \
    --loglevel DEBUG \
    --branch-name test-branch \
    --repo dktunited/dktrent-core \
    --commit-message "Create hello-world.txt" \
    touch hello-world.txt

alessandro-candon avatar Apr 19 '22 08:04 alessandro-candon

+1 experiencing this also

bzupnick avatar Apr 27 '22 17:04 bzupnick

No one has find a solution?

The only way to solve this problem for me was delete and recreate the project, a little bit heavy as solution...

alessandro-candon avatar May 25 '22 12:05 alessandro-candon

No one have a solution to this problem?

alessandro-candon avatar Jul 05 '22 12:07 alessandro-candon

I am also experiencing this in repos containing ~60k files after checkout. The working tree is not dirty when I clone it manually via git CLI.

xaviergmail avatar Nov 17 '22 00:11 xaviergmail

We are also experiencing the same problem. Any solution for same.

anshulgargamway avatar Dec 26 '22 11:12 anshulgargamway

I was running into this error as well. It turned out that we had two git paths with the same name but different case (ie src/utils/Sidebar.jsx vs src/Utils/Sidebar.jsx). After consolidating the paths this error went away.

jtri avatar Apr 26 '23 19:04 jtri