ensure repo is up to date before printing status #753
Reference in New Issue
Block a user
No description provided.
Delete Branch "737"
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?
#737
I need help figuring out how to add unit tests here, when I had this part isolated (passed in the recipe) I couldn't mock Recipe struct, maybe changing the struct into an interface would help with such unit tests?
@ammaratef45 Nice! In a similar vein to #750 (comment) i would abandon unit tests on this particular code path and just wire up an integration test that follows #737 (comment). There are helper functions for manipulating tags: https://git.coopcloud.tech/toolshed/abra/src/branch/main/tests/integration/helpers/git.bash#L6 Good luck!
WIP: ensure repo is up to date before printing statusto ensure repo is up to date before printing statusThanks @decentral1se I've followed your advise and this PR is ready to go imo
Thanks!
@ammaratef45 CI failures: https://build.coopcloud.tech/toolshed/abra/3511/1/7
Ah rip
I need a regexp that translates to
0 or more white spaces followed by 0while[[:space:]]0translates to1 or more white spaces followed by 0Will fix it and send a follow-up PR