summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsupport/download/git6
1 files changed, 5 insertions, 1 deletions
diff --git a/support/download/git b/support/download/git
index 39e57aac34..c88249ee63 100755
--- a/support/download/git
+++ b/support/download/git
@@ -154,7 +154,11 @@ fi
# Checkout the required changeset, so that we can update the required
# submodules.
-_git checkout -q "'${cset}'"
+_git checkout -f -q "'${cset}'"
+
+# Get rid of now-untracked directories (in case a git operation was
+# interrupted in a previous run).
+_git clean -ffdx
# Get date of commit to generate a reproducible archive.
# %cD is RFC2822, so it's fully qualified, with TZ and all.
OpenPOWER on IntegriCloud