Skip to content

Commit ceb0e02

Browse files
committed
test: use noop credential helper for auth tests
1 parent 2b1a0b0 commit ceb0e02

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

test/cmd/git-credential-lfsnoop.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package main
2+
3+
func main() {
4+
}

test/test-credentials-no-prompt.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ begin_test "attempt private access without credential helper"
3434
git add .gitattributes
3535
git commit -m "initial commit"
3636

37-
git config --unset credential.helper
38-
git config --global --unset credential.helper
37+
git config --global credential.helper lfsnoop
38+
git config credential.helper lfsnoop
39+
git config -l
3940

4041
GIT_TERMINAL_PROMPT=0 git push origin master 2>&1 | tee push.log
4142
grep "Authorization error: $GITSERVER/$reponame" push.log ||

0 commit comments

Comments
 (0)