Skip to content

Custom git hook script should only conditionally pop stash #3225

@heyzec

Description

@heyzec

In our script https://github.com/source-academy/frontend/blob/master/scripts/test.sh which is used as a pre-push git commit hook:

run_cmd "git stash pop"

This popping of the stash should be conditional based on whether

run_cmd "git stash push --keep-index --message precommit"

did in fact did a push on the stash!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions