We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38b111d commit 030e8d7Copy full SHA for 030e8d7
scripts/git_lfs_upload.sh
@@ -114,6 +114,7 @@ CLONE_URL="https://huggingface.co/datasets/${REPO_ID}.git"
114
# If HF_TOKEN is provided, use a temporary GIT_ASKPASS helper so the token
115
# is not exposed on the command line or process list. The helper prints the
116
# token when git prompts for a password. We keep the helper for the duration
117
+# of the script (so pushes work) and remove it on exit.
118
if [[ -n "$HF_TOKEN" ]]; then
119
ASKPASS_SCRIPT=$(mktemp -t hf_askpass.XXXXXX)
120
# Write an askpass helper that prints the token from the environment.
0 commit comments