diff options
author | Jeff King <peff@peff.net> | 2011-12-10 14:34:44 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-13 04:09:38 +0400 |
commit | 71e1b4b6bf7f274f0b3bf45e7325c04abb405b8a (patch) | |
tree | 902302e51c4401b0519f431b4e424856d7778a82 /t/t0302-credential-store.sh | |
parent | c505116b91d3c92f0c3066cb9806773d2df11088 (diff) |
credentials: add "store" helper
This is like "cache", except that we actually put the
credentials on disk. This can be terribly insecure, of
course, but we do what we can to protect them by filesystem
permissions, and we warn the user in the documentation.
This is not unlike using .netrc to store entries, but it's a
little more user-friendly. Instead of putting credentials in
place ahead of time, we transparently store them after
prompting the user for them once.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0302-credential-store.sh')
-rwxr-xr-x | t/t0302-credential-store.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t0302-credential-store.sh b/t/t0302-credential-store.sh new file mode 100755 index 0000000000..f61b40c69b --- /dev/null +++ b/t/t0302-credential-store.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +test_description='credential-store tests' +. ./test-lib.sh +. "$TEST_DIRECTORY"/lib-credential.sh + +helper_test store + +test_done |