-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1452 from github/allow-skippable-auth
add object Authenticated property
- Loading branch information
Showing
7 changed files
with
66 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
. "test/testlib.sh" | ||
|
||
# these tests rely on GIT_TERMINAL_PROMPT to test properly | ||
ensure_git_version_isnt $VERSION_LOWER "2.3.0" | ||
|
||
# if there is a system cred helper we can't run this test | ||
# can't disable without changing state outside test & probably don't have permission | ||
# this is common on OS X with certain versions of Git installed, default cred helper | ||
if [[ -n "$(git config --system credential.helper)" ]]; then | ||
echo "skip: $0 (system cred helper we can't disable)" | ||
exit | ||
fi | ||
|
||
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 master | ||
) | ||
end_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters