'app deploy' reports ''wordpress' has locally unstaged changes' when it doesn't #226
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
~/.gitignorefile which excludes vim swapfiles.~/.gitconfig:~/.gitignore:Is it possible that abra isn't picking up that config?
Global
excludefilesgets taken into account now forIsCleancall as far as I can tell. It seems like settingForce: Trueon 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
~/.gitignoreinto 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
~/.gitconfigfirst for thisexcludefilesconfig but I guess if you're not using that line, it could just try the default~/.gitignorefile? 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 🙏