File: t-object-authenticated.sh

package info (click to toggle)
git-lfs 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,808 kB
  • sloc: sh: 21,256; makefile: 507; ruby: 417
file content (23 lines) | stat: -rwxr-xr-x 542 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

. "$(dirname "$0")/testlib.sh"

# these tests rely on GIT_TERMINAL_PROMPT to test properly
ensure_git_version_isnt $VERSION_LOWER "2.3.0"

begin_test "download authenticated object"
(
  set -e
  reponame="$(basename "$0" ".sh")"
  setup_remote_repo "$reponame"
  clone_repo "$reponame" without-creds

  git lfs track "*.dat"
  printf "object-authenticated" > hi.dat
  git add hi.dat
  git add .gitattributes
  git commit -m "initial commit"

  GIT_CURL_VERBOSE=1 GIT_TERMINAL_PROMPT=0 git lfs push origin main
)
end_test