Thread (9 messages) 9 messages, 2 authors, 2016-06-15

Re: [PATCH/RFC/GSoC 2/3] git-credential-cache: put socket to xdg-compatible path

From: 惠轶群 <hidden>
Date: 2016-06-15 23:08:47

2016-03-16 18:07 GMT+08:00 Hui Yiqun [off-list ref]:
quoted hunk ↗ jump to hunk
move .git-credential-cache/socket to xdg_runtime_dir("credential-cache.sock")

Signed-off-by: Hui Yiqun <redacted>
---
 credential-cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/credential-cache.c b/credential-cache.c
index f4afdc6..40d838b 100644
--- a/credential-cache.c
+++ b/credential-cache.c
@@ -105,7 +105,7 @@ int main(int argc, const char **argv)
        op = argv[0];

        if (!socket_path)
-               socket_path = expand_user_path("~/.git-credential-cache/socket");
+               socket_path = xdg_runtime_dir("credential-cache.sock");
        if (!socket_path)
                die("unable to find a suitable socket path; use --socket");

--
2.7.2
I'm sure but if user set up git-credential-cache with following command:

    git config --global credential.helper "cache --socket
~/.git-credential-cache/socket"

will the ~ be expanded?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help