'app deploy' reports ''wordpress' has locally unstaged changes' when it doesn't #226
Labels
No Label
abra
abra-gandi
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
democracy
design
documentation
duplicate
enhancement
finance
funding
good first issue
help wanted
installer
kadabra
performance
proposal
question
recipes.coopcloud.tech
security
test
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/organising#226
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trying to redeploy an app, seeing
FATA[0005] wordpress has locally unstaged changes
, butCouldn't reproduce but added debug logging in case we run into again.
I think your debug logging found the problem!
I have a global
~/.gitignore
file which excludes vim swapfiles.~/.gitconfig
:~/.gitignore
:Is it possible that abra isn't picking up that config?
Global
excludefiles
gets taken into account now forIsClean
call as far as I can tell. It seems like settingForce: True
on the check outs is just causing misery so I switched that off for now (commit linked above too).Now I get a crash, weirdly on the Wordpress repo again 😬
The debugging output I added says that
getExcludesFile(cfg)
is getting an empty response 🤔If I comment out these lines it works again:
But I assume back to not taking
~/.gitignore
into account.Tried to fix this again. Could you give latest another test run @3wordchant 🙏
/cc @knoflook so i don't lose you more time on some random stack trace in a coop-cloud/abra#141 round 2 🙃
btw, just in case we have different configs, here is my setup:
~/.gitconfig
:~/.gitignore_global
:It reads the
~/.gitconfig
first for thisexcludefiles
config but I guess if you're not using that line, it could just try the default~/.gitignore
file? Will throw this in as well.Yep I've got basically the same config:
I'll test out the new change ASAP!
I've tested this manually a few times, think it is fixed 🙏