Spaces:
Sleeping
Sleeping
cisdeli commited on
Commit ·
4f950d0
1
Parent(s): 4a09df2
Let deploy_space.sh run with untracked files present
Browse filesUntracked files are never pushed to the Space, so they should not block a
deploy.
- scripts/deploy_space.sh +3 -2
scripts/deploy_space.sh
CHANGED
|
@@ -18,8 +18,9 @@ TMP_BRANCH="space-deploy-$$"
|
|
| 18 |
git remote get-url "$REMOTE" >/dev/null
|
| 19 |
git rev-parse --verify "$BRANCH" >/dev/null
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
|
|
|
| 23 |
exit 1
|
| 24 |
fi
|
| 25 |
|
|
|
|
| 18 |
git remote get-url "$REMOTE" >/dev/null
|
| 19 |
git rev-parse --verify "$BRANCH" >/dev/null
|
| 20 |
|
| 21 |
+
# Untracked files never reach the Space, so only tracked changes matter here.
|
| 22 |
+
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
|
| 23 |
+
echo "tracked files have uncommitted changes; commit or stash first" >&2
|
| 24 |
exit 1
|
| 25 |
fi
|
| 26 |
|