aboutsummaryrefslogtreecommitdiff
path: root/t/t0302-credential-store.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-12-10 05:34:44 -0500
committerJunio C Hamano <gitster@pobox.com>2011-12-12 16:09:38 -0800
commit71e1b4b6bf7f274f0b3bf45e7325c04abb405b8a (patch)
tree902302e51c4401b0519f431b4e424856d7778a82 /t/t0302-credential-store.sh
parentc505116b91d3c92f0c3066cb9806773d2df11088 (diff)
downloadgit-71e1b4b6bf7f274f0b3bf45e7325c04abb405b8a.tar.gz
git-71e1b4b6bf7f274f0b3bf45e7325c04abb405b8a.tar.xz
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-xt/t0302-credential-store.sh9
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 000000000..f61b40c69
--- /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