summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Miller <George@livio.io>2022-08-04 11:33:26 -0400
committerGeorge Miller <George@livio.io>2022-08-04 11:33:26 -0400
commit319f1d5daf7d68df77c8e362058ffdb4cb55e2e3 (patch)
tree0387bf203cb5756e17388efb802d11766f8fd796
parent415a7291ea6ded30ce4654d5241f9ac9c30c66ff (diff)
downloadsdl_ios-319f1d5daf7d68df77c8e362058ffdb4cb55e2e3.tar.gz
added git clean
-rwxr-xr-xscripts/release.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index bc5b7cbd7..320f12e63 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -65,9 +65,10 @@ else
echo "Local changes have been stashed."
echo "Use \"git stash pop\" when this script is complete to restore your changes"
else
- # Dump local changes to prevent issues with checkout
+ # Dump local changes to prevent issues with checkout. Reset cleans up any uncommitted changes to the index. Clean takes care of non-indexed files.
echo "Local changes were not stashed."
git reset --hard
+ git clean -fxd
fi
fi