Merge pull request #1267 from ttaylorr/noop-creds-helper

test: use noop credential helper for auth tests
This commit is contained in:
risk danger olson 2016-05-31 17:28:43 -06:00
commit 0a16cf853e
2 changed files with 8 additions and 2 deletions

@ -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 ||