test: use more plumbing for git output #414
No reviewers
Labels
No Label
bug
build
ci/cd
contributing
design
documentation
duplicate
enhancement
help wanted
invalid
meta
question
security
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#414
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "git-plumbing-approach"
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?
Aight, I think I've got a way we can compare Git checkouts/hashes/tags etc. without relying on end-user facing Git output ("porcelain") which is changing. We need to use more "plumbing" commands to get reliable output in the future.
Tested on
app_new.bats
with success!Working on coop-cloud/organising#595 coop-cloud/organising#584
cc @p4u1
test: use more plumbung for git outputto test: use more plumbing for git outputNice,I think this is going in the right direction! Did you consider returning a value in those got helper functions instead of setting env variables? This seems a little magic for me
302c88e5d2
to43990b6fae
Agreed but sadly, Bash is wild and
return
is not "return" 😱 Instead ofexport ...
I set a var now 😬return
only works with numeric codes, I think,$historical_reasons
.