Skip to content

Commit 030e8d7

Browse files
Update git_lfs_upload.sh
1 parent 38b111d commit 030e8d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/git_lfs_upload.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ CLONE_URL="https://huggingface.co/datasets/${REPO_ID}.git"
114114
# If HF_TOKEN is provided, use a temporary GIT_ASKPASS helper so the token
115115
# is not exposed on the command line or process list. The helper prints the
116116
# 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.
117118
if [[ -n "$HF_TOKEN" ]]; then
118119
ASKPASS_SCRIPT=$(mktemp -t hf_askpass.XXXXXX)
119120
# Write an askpass helper that prints the token from the environment.

0 commit comments

Comments
 (0)