mirror of
https://github.com/mandiant/capa.git
synced 2025-12-22 07:10:29 -08:00
hooks: do not render git stash output
The `-q` options hides most of the output, but not everything.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
# Stash uncommited changes
|
||||
MSG="post-commit-$(date +%s)";
|
||||
git stash push -kqum "$MSG";
|
||||
git stash push -kum "$MSG" &>/dev/null ;
|
||||
STASH_LIST=$(git stash list);
|
||||
if [[ "$STASH_LIST" == *"$MSG"* ]]; then
|
||||
echo "Uncommited changes stashed with message '$MSG', if you abort before they are restored run \`git stash pop\`";
|
||||
@@ -57,6 +57,6 @@ fi
|
||||
|
||||
# Restore stashed changes
|
||||
if [[ "$STASH_LIST" == *"$MSG"* ]]; then
|
||||
git stash pop -q --index;
|
||||
git stash pop --index &>/dev/null ;
|
||||
echo "Stashed changes '$MSG' restored";
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user