Merge pull request #1267 from ttaylorr/noop-creds-helper
test: use noop credential helper for auth tests
This commit is contained in:
commit
0a16cf853e
4
test/cmd/git-credential-lfsnoop.go
Normal file
4
test/cmd/git-credential-lfsnoop.go
Normal file
@ -0,0 +1,4 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
}
|
@ -34,8 +34,10 @@ begin_test "attempt private access without credential helper"
|
||||
git add .gitattributes
|
||||
git commit -m "initial commit"
|
||||
|
||||
git config --unset credential.helper
|
||||
git config --global --unset credential.helper
|
||||
git config credential.usehttppath true
|
||||
git config --global credential.helper lfsnoop
|
||||
git config credential.helper lfsnoop
|
||||
git config -l
|
||||
|
||||
GIT_TERMINAL_PROMPT=0 git push origin master 2>&1 | tee push.log
|
||||
grep "Authorization error: $GITSERVER/$reponame" push.log ||
|
||||
|
Loading…
Reference in New Issue
Block a user